]> git.karo-electronics.de Git - karo-tx-uboot.git/commit - include/configs/microblaze-generic.h
gpio: Add support for microblaze xilinx GPIO
authorMichal Simek <michal.simek@xilinx.com>
Wed, 24 Apr 2013 08:01:20 +0000 (10:01 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 9 May 2013 09:20:08 +0000 (11:20 +0200)
commit4e779ad2e54e39d5343c8c83b4fc686a7bb16859
tree00d83f149cdf74c2237b7301dfedcfb241df576d
parenta8425d52885de047fc00019cdf3e697b4d32b67a
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>
arch/microblaze/include/asm/gpio.h
board/xilinx/microblaze-generic/microblaze-generic.c
drivers/gpio/Makefile
drivers/gpio/xilinx_gpio.c [new file with mode: 0644]
include/configs/microblaze-generic.h