Skip to contentSkip to conversation

powerpc: implement GPIO LIB API on CPM1 Freescale SoC.

PATCH New Jochen Friedrich 1 participant 1 message Jul 2, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: implement GPIO LIB API on CPM1 Freescale SoC.

This patch implement GPIO LIB support for the CPM1 GPIOs.

---

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
index 6fc849e..3488bb7 100644
@@ -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