diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-04-24 10:01:20 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-05-09 11:20:08 +0200 |
commit | 4e779ad2e54e39d5343c8c83b4fc686a7bb16859 (patch) | |
tree | 00d83f149cdf74c2237b7301dfedcfb241df576d /include | |
parent | a8425d52885de047fc00019cdf3e697b4d32b67a (diff) | |
download | u-boot-imx-4e779ad2e54e39d5343c8c83b4fc686a7bb16859.zip u-boot-imx-4e779ad2e54e39d5343c8c83b4fc686a7bb16859.tar.gz u-boot-imx-4e779ad2e54e39d5343c8c83b4fc686a7bb16859.tar.bz2 |
gpio: Add support for microblaze xilinx GPIO
Microblaze uses gpio which is connected to the system reset.
Currently gpio subsystem wasn't used for it.
Add gpio driver and change Microblaze reset logic to be done
via gpio subsystem.
There are various configurations which Microblaze can have
that's why gpio_alloc/gpio_alloc_dual(for dual channel)
function has been introduced and gpio can be allocated
dynamically.
Adding several gpios IP is also possible and supported.
For listing gpio configuration please use "gpio status" command
This patch also remove one compilation warning:
microblaze-generic.c: In function 'do_reset':
microblaze-generic.c:38:47: warning: operation on '*1073741824u'
may be undefined [-Wsequence-point]
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/microblaze-generic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h index 0c4e719..17f53ba 100644 --- a/include/configs/microblaze-generic.h +++ b/include/configs/microblaze-generic.h @@ -104,7 +104,7 @@ /* gpio */ #ifdef XILINX_GPIO_BASEADDR -# define CONFIG_SYS_GPIO_0 1 +# define CONFIG_XILINX_GPIO # define CONFIG_SYS_GPIO_0_ADDR XILINX_GPIO_BASEADDR #endif @@ -312,6 +312,7 @@ #define CONFIG_CMD_IRQ #define CONFIG_CMD_MFSL #define CONFIG_CMD_ECHO +#define CONFIG_CMD_GPIO #if defined(CONFIG_DCACHE) || defined(CONFIG_ICACHE) # define CONFIG_CMD_CACHE |