u-boot-brain/arch/arm/include/asm/arch-lpc32xx
Sylvain Lemieux 89983478bd gpio: lpc32xx: fix issues with port3 gpio
The current simplify lpc32xx gpio driver implementation assume a
maximum of 32 GPIO per port; there are a total of 22 GPI, 24 GPO
and 6 GPIO to managed on port 3.

Update the driver to fix the following:
1) When requesting GPI_xx and GPO_xx on port 3 (xx is the same number)
   the second call to "gpio_request" will return -EBUSY.

2) The status of GPO_xx pin report the status of the
   corresponding GPI_xx pin when using the "gpio status" command.

3) The gpio driver may setup the direction register for the wrong
   gpio when calling "gpio_direction_input" (GPI_xx) or
   "gpio_direction_output" (GPO_xx) on port 3; the call to the
   direction is require to use the "gpio status" command.

The following change were done in the driver:
1) port3 GPI are cache in a separate 32 bits in the array.
2) port3 direction register written only for GPIO pins.
3) port3 GPO & GPIO (as output) are read using "p3_outp_state".
4) LPC32XX_GPI_P3_GRP updated to match the change.

Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
2015-09-11 17:15:34 -04:00
..
clk.h lpc32xx: remove duplicated DMA_CLK_ENABLE bit definition 2015-09-11 14:05:35 -04:00
config.h lpc32xx: add common USB OHCI defines for all LPC32xx boards 2015-08-18 13:45:58 -04:00
cpu.h arm: lpc32xx: mux: add missing registers 2015-08-17 08:10:53 -04:00
dma.h dma: lpc32xx: add DMA driver 2015-08-18 13:45:55 -04:00
emc.h lpc32xx: add support for board work_92105 2015-04-10 14:23:39 +02:00
gpio_grp.h gpio: lpc32xx: fix issues with port3 gpio 2015-09-11 17:15:34 -04:00
gpio.h lpc32xx: add GPIO support 2015-04-10 14:23:09 +02:00
mux.h arm: lpc32xx: mux: add missing registers 2015-08-17 08:10:53 -04:00
sys_proto.h usb: lpc32xx: add host USB driver 2015-08-18 13:45:57 -04:00
timer.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
uart.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
wdt.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00