2010-03-21 23:24:37     problem of GPIO 35 is already reserved as Peripheral by bfin-spi !

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-03-21 23:24:37     problem of GPIO 35 is already reserved as Peripheral by bfin-spi !

zhang zhihua (CHINA)

Message: 87528   

 

BF518F-EZBRD,我现在想使用PH2、PH3、PH4来扩展串口(16C2552),PH3、PH4作为两个外部中断(INTA、INTB)的输入,但是在使用request_irq()申请中断号IRQ_PH3、IRQ_PH4的时候却出现了问题,IRQ_PH4能申请成功,但是IRQ_PH3却出现以下错误:

 

bfin-gpio: GPIO 35 is already reserved as Peripheral by bfin-spi !

setting trigger mode 2 for irq 106 failed (_bfin_gpio_irq_type+0x0/0x154)

Request the IRQ failed!

 

在内核里面修改哪个文件可以修改呢?因为在以前的使用过程当中IRQ_PH3没使用到,所以我现在想屏蔽掉以前系统中reserved的这个中断号,使他能为我所用呢?

TranslateQuoteReplyEditDelete

 

 

2010-03-21 23:53:30     Re: problem of GPIO 35 is already reserved as Peripheral by bfin-spi !

Mike Frysinger (UNITED STATES)

Message: 87530   

 

the error told you the problem -- the SPI controller is using those pins.  either disable the SPI bus or read the HRM to figure out what other pins are available.

QuoteReplyEditDelete

 

 

2010-03-22 00:17:10     Re: problem of GPIO 35 is already reserved as Peripheral by bfin-spi !

zhang zhihua (CHINA)

Message: 87532   

 

Hi,Mike,

 

    On our  own board, we are not use those pins,but how to disable the SPI bus in the kernel so that I can use it to request the irq ?

TranslateQuoteReplyEditDelete

 

 

2010-03-22 00:20:51     Re: problem of GPIO 35 is already reserved as Peripheral by bfin-spi !

Mike Frysinger (UNITED STATES)

Message: 87533   

 

it's in the menu config like everything else

QuoteReplyEditDelete

 

 

2010-03-22 01:26:04     Re: problem of GPIO 35 is already reserved as Peripheral by bfin-spi !

zhang zhihua (CHINA)

Message: 87538   

 

but if I disable the SPI BUS,can the system work correctly? we are only not use the GPIO PH3...

Attachments

    Outcomes