u-boot-brain/arch/powerpc
mario.six@gdsys.cc 07d31f8f98 dm: gpio: Add driver for MPC85XX GPIO controller
This patch adds a driver for the built-in GPIO controller of the MPC85XX
SoC (probably supporting other PowerQUICC III SoCs as well).

Each GPIO bank is identified by its own entry in the device tree, i.e.

gpio-controller@fc00 {
      #gpio-cells = <2>;
      compatible = "fsl,pq3-gpio";
      reg = <0xfc00 0x100>
}

By default, each bank is assumed to have 32 GPIOs, but the ngpios
setting is honored, so the number of GPIOs for each bank in configurable
to match the actual GPIO count of the SoC (e.g. the 32/32/23 banks of
the P1022 SoC).

The usual functions of GPIO drivers (setting input/output mode and output
value setting) are supported.

The driver has been tested on MPC85XX, but it is likely that other
PowerQUICC III devices will work as well.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <york.sun@nxp.com>
2016-06-03 22:13:24 -07:00
..
cpu arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro. 2016-06-03 22:13:12 -07:00
dts ppc: dts: Add device tree for xilix-ppc4xx-generic 2016-01-27 15:43:01 +01:00
include/asm dm: gpio: Add driver for MPC85XX GPIO controller 2016-06-03 22:13:24 -07:00
lib powerpc: Drop unused code related to generic board 2016-05-27 15:39:54 -04:00
config.mk arm, powerpc: Update cc-version tests to check for cc-name as well 2016-01-25 10:39:44 -05:00
Kconfig kbuild: create symbolic link only for ARM, AVR32, SPARC, PowerPC, x86 2015-07-27 15:02:00 -04:00
Makefile Kbuild: introduce Makefile in arch/$ARCH/ 2014-12-08 09:35:45 -05:00