Skip to contentSkip to conversation

Move to Samsung common GPIO library to drivers/gpio

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

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 Move to Samsung common GPIO library to drivers/gpio

From: Kyungmin Park <[email protected]>

It's common gpiolib for recent Samsung SoCs. Move to drivers/gpio

---
 arch/arm/plat-samsung/Makefile  |    1 -
 arch/arm/plat-samsung/gpiolib.c |  206 --------------------------------------
 drivers/gpio/Kconfig            |    6 +
 drivers/gpio/Makefile           |    1 +
 drivers/gpio/samsung-gpiolib.c  |  207 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 214 insertions(+), 207 deletions(-)
 delete mode 100644 arch/arm/plat-samsung/gpiolib.c
 create mode 100644 drivers/gpio/samsung-gpiolib.c
arch/arm/plat-samsung/Makefile +0 -1
index e9de58a..53eb15b 100644
@@ -19,7 +19,6 @@ obj-y				+= gpio.o
 obj-y				+= gpio-config.o
 obj-y				+= dev-asocdma.o
 
-obj-$(CONFIG_SAMSUNG_GPIOLIB_4BIT)	+= gpiolib.o
 obj-$(CONFIG_SAMSUNG_CLKSRC)	+= clock-clksrc.o
 
 obj-$(CONFIG_SAMSUNG_IRQ_UART)	+= irq-uart.o
arch/arm/plat-samsung/gpiolib.c deleted +0 -206

206 lines not on this page · raw message

drivers/gpio/Kconfig +6 -0
index d3b2953..42376b7 100644
@@ -75,6 +75,12 @@ config GPIO_BASIC_MMIO
 	help
 	  Say yes here to support basic memory-mapped GPIO controllers.
 
+config GPIO_SAMSUNG
+	bool "Samsung SoCs GPIO library support"
+	default y if SAMSUNG_GPIOLIB_4BIT
+	help
+	  Say yes here to support Samsung SoCs GPIO library
+
 config GPIO_IT8761E
 	tristate "IT8761E GPIO support"
 	depends on GPIOLIB
drivers/gpio/Makefile +1 -0
index becef59..229082d 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_SAMSUNG)	+= samsung-gpiolib.o
 obj-$(CONFIG_GPIO_LANGWELL)	+= langwell_gpio.o
 obj-$(CONFIG_GPIO_MAX730X)	+= max730x.o
 obj-$(CONFIG_GPIO_MAX7300)	+= max7300.o
drivers/gpio/samsung-gpiolib.c new file +207 -0

207 lines not on this page · raw message

Signature · 1 line
1.7.5.1.300.gc565c