powerpc: implement GPIO LIB API on CPM1 Freescale SoC.
Subsystems (2)
PATCH 1/1 powerpc: implement GPIO LIB API on CPM1 Freescale SoC.
This patch implement GPIO LIB support for the CPM1 GPIOs.
Signed-off-by Jochen Friedrich <[email protected]>
---
This patch depends on the GPIO LIB support for the CPM2 GPIOs patch from Laurent Pinchart.
Changes since last submission:
- of_gc->gpio_cells = 2 to allow passing port options in the future.
- remove the artificial fsl,cpm1-pario-bank16 and fsl,cpm1-pario-bank32 compatible names as all ports havs slightly different register layouts.
arch/powerpc/platforms/8xx/Kconfig | 10 ++ arch/powerpc/sysdev/cpm1.c | 267 +++++++++++++++++++++++++++++++++++- 2 files changed, 272 insertions(+), 5 deletions(-)
arch/powerpc/platforms/8xx/Kconfig +10 -0
@@ -105,6 +105,16 @@ config 8xx_COPYBACK If in doubt, say Y here. +config 8xx_GPIO + bool "GPIO API Support" + select GENERIC_GPIO + select HAVE_GPIO_LIB + help + Saying Y here will cause the ports on an MPC8xx processor to be used + with the GPIO API. If you say N here, the kernel needs less memory. + + If in doubt, say Y here. + config 8xx_CPU6 bool "CPU6 Silicon Errata (860 Pre Rev. C)" help
arch/powerpc/sysdev/cpm1.c +262 -5
297 lines not on this page · raw message
Signature · 1 line
1.5.6