Skip to contentSkip to conversation

Move the exynos4 GPIO to drivers/gpio

PATCH Superseded Kyungmin Park 1 participant 1 message May 20, 2011

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Move the exynos4 GPIO to drivers/gpio

From: Kyungmin Park <[email protected]>

Move the Samsung Exynos4 series SoCs GPIO driver to drivers/gpio

---
 arch/arm/mach-exynos4/Makefile  |    2 +-
 arch/arm/mach-exynos4/gpiolib.c |  365 ---------------------------------------
 drivers/gpio/Kconfig            |    6 +
 drivers/gpio/Makefile           |    1 +
 drivers/gpio/exynos4-gpio.c     |  365 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 373 insertions(+), 366 deletions(-)
 delete mode 100644 arch/arm/mach-exynos4/gpiolib.c
 create mode 100644 drivers/gpio/exynos4-gpio.c
arch/arm/mach-exynos4/Makefile +1 -1
index 9be104f..3bb3f57 100644
@@ -13,7 +13,7 @@ obj-				:=
 # Core support for EXYNOS4 system
 
 obj-$(CONFIG_CPU_EXYNOS4210)	+= cpu.o init.o clock.o irq-combiner.o
-obj-$(CONFIG_CPU_EXYNOS4210)	+= setup-i2c0.o gpiolib.o irq-eint.o dma.o
+obj-$(CONFIG_CPU_EXYNOS4210)	+= setup-i2c0.o irq-eint.o dma.o
 obj-$(CONFIG_PM)		+= pm.o sleep.o
 obj-$(CONFIG_CPU_FREQ)		+= cpufreq.o
 
arch/arm/mach-exynos4/gpiolib.c deleted +0 -365

365 lines not on this page · raw message

drivers/gpio/Kconfig +6 -0
index 42376b7..03e7310 100644
@@ -75,6 +75,12 @@ config GPIO_BASIC_MMIO
 	help
 	  Say yes here to support basic memory-mapped GPIO controllers.
 
+config GPIO_EXYNOS4
+	bool "Samsung Exynos4 GPIO library support"
+	default y if CPU_EXYNOS4210
+	help
+	  Say yes here to support Samsung Exynos4 series SoCs GPIO library
+
 config GPIO_SAMSUNG
 	bool "Samsung SoCs GPIO library support"
 	default y if SAMSUNG_GPIOLIB_4BIT
drivers/gpio/Makefile +1 -0
index 229082d..978ab87 100644
@@ -11,6 +11,7 @@ obj-$(CONFIG_GPIOLIB)		+= gpiolib.o
 obj-$(CONFIG_GPIO_ADP5520)	+= adp5520-gpio.o
 obj-$(CONFIG_GPIO_ADP5588)	+= adp5588-gpio.o
 obj-$(CONFIG_GPIO_BASIC_MMIO)	+= basic_mmio_gpio.o
+obj-$(CONFIG_GPIO_EXYNOS4)	+= exynos4-gpio.o
 obj-$(CONFIG_GPIO_SAMSUNG)	+= samsung-gpiolib.o
 obj-$(CONFIG_GPIO_LANGWELL)	+= langwell_gpio.o
 obj-$(CONFIG_GPIO_MAX730X)	+= max730x.o
drivers/gpio/exynos4-gpio.c new file +365 -0

365 lines not on this page · raw message

Signature · 1 line
1.7.5.1.300.gc565c