From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Wed, 09 Jun 2010 08:58:50 +0800 Subject: [U-Boot] nand_plat extensions with GPIO framework In-Reply-To: <201006081710.12926.vapier@gentoo.org> References: <201006081710.12926.vapier@gentoo.org> Message-ID: <4C0EE74A.8050809@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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