[U-Boot] [PATCH v2 0/3] dm: gpio: Add driver for MPC85xx GPIO controller
Mario Six
mario.six at gdsys.cc
Tue May 10 09:50:59 CEST 2016
The functions for accessing GPIOs on MPC85xx are hardcoded in
arch/powerpc/include/asm/mpc85xx_gpio.h This leads to problems if another GPIO
controller supporting the driver model is to be used simultaneously.
Therefore, this patch moves the "static" functions into a DM-compatible driver,
and also introduces a set of functions into the GPIO uclass that expose the
controller's capability to switch individual GPIOs into open-drain-mode.
Mario Six (3):
dm: gpio: Add driver for MPC85XX GPIO controller
dm: gpio: Add methods for open drain setting
dm: gpio: Implement open drain for MPC85XX GPIO
arch/powerpc/include/asm/arch-mpc85xx/gpio.h | 2 +
arch/powerpc/include/asm/immap_85xx.h | 2 +
drivers/gpio/Kconfig | 25 ++++
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-uclass.c | 32 +++++
drivers/gpio/mpc85xx_gpio.c | 202 +++++++++++++++++++++++++++
include/asm-generic/gpio.h | 34 +++++
7 files changed, 298 insertions(+)
create mode 100644 drivers/gpio/mpc85xx_gpio.c
--
2.7.0.GIT
More information about the U-Boot
mailing list