[U-Boot] nand_plat extensions with GPIO framework

Thomas Chou thomas at wytron.com.tw
Wed Jun 9 02:58:50 CEST 2010


Mike Frysinger wrote:
> i'm in the process of merging the GPIO layer from Linux into the Blackfin port 
> (well, it's already done, so now i'm just converting drivers over to it).  as 
> i'm sure you're aware, the GPIO framework in Linux provides a common API 
> across all ports, so anyone who supports asm/gpio.h is going to work.  no-arch 
> specific junk here.
> 
> some Blackfin boards use GPIOs with the nand_plat driver for the dev_ready 
> pin.  so while i can easily convert the board config header to call these gpio 
> funcs, the issue is that i cant really pull in headers like asm/gpio.h in the 
> board config since all files will then pull it in.
> 

Hi Mike,

Thanks. This is what I have been looking for. Nios2 has asm/gpio.h 
already, then I added gpio_request() and tested on my boards.

Tested-by: Thomas Chou <thomas at wytron.com.tw>


More information about the U-Boot mailing list