[U-Boot] [PATCH v2 0/5] dm: gpio: add BMIPS gpio support
Álvaro Fernández Rojas
noltari at gmail.com
Sun May 7 18:09:29 UTC 2017
Broadcom MIPS SoCs have one or two GPIO banks, depending on the number of
gpios present:
BCM6345 => 16 GPIOs / 1 bank
BCM6328 => 32 GPIOs / 1 bank
BCM6358 => 40 GPIOs / 2 banks
BCM63268 => 52 GPIOs / 2 banks
typedef struct GpioControl {
uint32 GPIODirHi; /* 0 */
uint32 GPIODir; /* 4 */
uint32 GPIOioHi; /* 8 */
uint32 GPIOio; /* C */
}
v2: Introduce changes suggested by Simon Glass
Álvaro Fernández Rojas (5):
dm: gpio: add BCM6345 gpio driver
mips: bmips: add bcm6345-gpio driver support for BCM6358
mips: bmips: add bcm6345-gpio driver support for BCM6328
mips: bmips: add bcm6345-gpio driver support for BCM63268
mips: bmips: add Huawei HG556a gpio-leds
arch/mips/dts/brcm,bcm63268.dtsi | 19 ++++++
arch/mips/dts/brcm,bcm6328.dtsi | 9 +++
arch/mips/dts/brcm,bcm6358.dtsi | 19 ++++++
arch/mips/dts/huawei,hg556a.dts | 73 +++++++++++++++++++++
configs/huawei_hg556a_ram_defconfig | 4 ++
drivers/gpio/Kconfig | 6 ++
drivers/gpio/Makefile | 1 +
drivers/gpio/bcm6345_gpio.c | 125 ++++++++++++++++++++++++++++++++++++
8 files changed, 256 insertions(+)
create mode 100644 drivers/gpio/bcm6345_gpio.c
--
2.1.4
More information about the U-Boot
mailing list