Skip to contentSkip to conversation

Move the exynos4 GPIO to drivers/gpio

PATCH New Kyungmin Park 1 participant 1 message May 23, 2011

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

PATCH v2 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/gpio-exynos4.c     |  365 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 373 insertions(+), 366 deletions(-)
 delete mode 100644 arch/arm/mach-exynos4/gpiolib.c
 create mode 100644 drivers/gpio/gpio-exynos4.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 fd4bb20..28a31f1 100644
@@ -81,6 +81,12 @@ config GPIO_IT8761E
 	help
 	  Say yes here to support GPIO functionality of IT8761E super I/O chip.
 
+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_PLAT_SAMSUNG
 	bool "Samsung SoCs GPIO library support"
 	default y if SAMSUNG_GPIOLIB_4BIT
drivers/gpio/Makefile +1 -0
index 1321cdb..b271b93 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)	+= gpio-exynos4.o
 obj-$(CONFIG_GPIO_PLAT_SAMSUNG)	+= gpio-plat-samsung.o
 obj-$(CONFIG_GPIO_LANGWELL)	+= langwell_gpio.o
 obj-$(CONFIG_GPIO_MAX730X)	+= max730x.o
drivers/gpio/gpio-exynos4.c new file +365 -0

365 lines not on this page · raw message

Signature · 1 line
1.7.5.1.300.gc565c