Skip to contentSkip to conversation

Move to Samsung common GPIO library to drivers/gpio

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

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

PATCH v2 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/gpio-plat-samsung.c |  206 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 213 insertions(+), 207 deletions(-)
 delete mode 100644 arch/arm/plat-samsung/gpiolib.c
 create mode 100644 drivers/gpio/gpio-plat-samsung.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..fd4bb20 100644
@@ -81,6 +81,12 @@ config GPIO_IT8761E
 	help
 	  Say yes here to support GPIO functionality of IT8761E super I/O chip.
 
+config GPIO_PLAT_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_PL061
 	bool "PrimeCell PL061 GPIO support"
 	depends on ARM_AMBA
drivers/gpio/Makefile +1 -0
index becef59..1321cdb 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_PLAT_SAMSUNG)	+= gpio-plat-samsung.o
 obj-$(CONFIG_GPIO_LANGWELL)	+= langwell_gpio.o
 obj-$(CONFIG_GPIO_MAX730X)	+= max730x.o
 obj-$(CONFIG_GPIO_MAX7300)	+= max7300.o
drivers/gpio/gpio-plat-samsung.c new file +206 -0

206 lines not on this page · raw message

Signature · 1 line
1.7.5.1.300.gc565c