nios2: add gpio support
authorThomas Chou <thomas@wytron.com.tw>
Fri, 30 Apr 2010 03:34:13 +0000 (11:34 +0800)
committerScott McNutt <smcnutt@psyent.com>
Fri, 28 May 2010 14:56:03 +0000 (10:56 -0400)
commitcedd341d551b6b705e97ab1953a87575b9ff9ef9
tree3ab675b58aed1dd5a80f09c16a7a03198fdbe560
parent01f03bda5b22e5aeae5f02fd537da97a41485c73
nios2: add gpio support

This patch adds driver for a trivial gpio core, which is described
in http://nioswiki.com/GPIO. It is used for gpio led and nand flash
interface in u-boot.

When CONFIG_SYS_GPIO_BASE is not defined, board may provide
its own driver.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Tested-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
arch/nios2/include/asm/gpio.h [new file with mode: 0644]