gpio/samsung: Add support Samsung GPIO with gpio-samsung.c
Subsystems (4)
cover gpio/samsung: Add support Samsung GPIO with gpio-samsung.c
This patch merges existing many Samsung GPIO drivers into the one drivers/gpio/gpio-samsung.c.
[PATCH 1/7 (RE-SEND)] gpio/s3c24xx: move gpio driver into drivers/gpio/ [PATCH 2/7 (RE-SEND)] gpio/s3c64xx: move gpio driver into drivers/gpio/ [PATCH 3/7 (RE-SEND)] gpio/s5p64x0: move gpio driver into drivers/gpio/ [PATCH 4/7] gpio/samsung: Remove useless old Samsung related GPIO drivers [PATCH 5/7] gpio/samsung: Added gpio-samsung.c to support Samsung GPIOs [PATCH 6/7] ARM: SAMSUNG: Update the name of regarding Samsung GPIO [PATCH 7/7] ARM: SAMSUNG: Remove useless Samsung GPIO related CONFIGs
PATCH 1/7 gpio/s3c24xx: move gpio driver into drivers/gpio/
--- arch/arm/mach-s3c2410/Kconfig | 6 -- arch/arm/mach-s3c2410/Makefile | 1 - arch/arm/mach-s3c2412/Kconfig | 1 - arch/arm/mach-s3c2412/Makefile | 1 - arch/arm/mach-s3c2440/Kconfig | 2 - arch/arm/plat-s3c24xx/Makefile | 2 - arch/arm/plat-s3c24xx/gpio.c | 96 -------------------- drivers/gpio/Kconfig | 4 + drivers/gpio/Makefile | 1 + .../gpiolib.c => drivers/gpio/gpio-s3c24xx.c | 70 +++++++++++++-- 10 files changed, 67 insertions(+), 117 deletions(-) delete mode 100644 arch/arm/plat-s3c24xx/gpio.c rename arch/arm/plat-s3c24xx/gpiolib.c => drivers/gpio/gpio-s3c24xx.c (78%)
arch/arm/mach-s3c2410/Kconfig +0 -6
@@ -8,7 +8,6 @@ config CPU_S3C2410 select CPU_ARM920T select S3C_GPIO_PULL_UP select S3C2410_CLOCK - select S3C2410_GPIO select CPU_LLSERIAL_S3C2410 select S3C2410_PM if PM select S3C2410_CPUFREQ if CPU_FREQ_S3C24XX
@@ -28,11 +27,6 @@ config S3C2410_PM help Power Management code common to S3C2410 and better -config S3C2410_GPIO - bool - help - GPIO code for S3C2410 and similar processors - config SIMTEC_NOR bool help
arch/arm/mach-s3c2410/Makefile +0 -1
@@ -13,7 +13,6 @@ obj-$(CONFIG_CPU_S3C2410) += s3c2410.o obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o obj-$(CONFIG_S3C2410_PM) += pm.o sleep.o -obj-$(CONFIG_S3C2410_GPIO) += gpio.o obj-$(CONFIG_S3C2410_CPUFREQ) += cpu-freq.o obj-$(CONFIG_S3C2410_PLLTABLE) += pll.o
arch/arm/mach-s3c2412/Kconfig +0 -1
@@ -9,7 +9,6 @@ config CPU_S3C2412 select CPU_LLSERIAL_S3C2440 select S3C2412_PM if PM select S3C2412_DMA if S3C2410_DMA - select S3C2410_GPIO help Support for the S3C2412 and S3C2413 SoCs from the S3C24XX line
arch/arm/mach-s3c2412/Makefile +0 -1
@@ -12,7 +12,6 @@ obj- := obj-$(CONFIG_CPU_S3C2412) += s3c2412.o obj-$(CONFIG_CPU_S3C2412) += irq.o obj-$(CONFIG_CPU_S3C2412) += clock.o -obj-$(CONFIG_CPU_S3C2412) += gpio.o obj-$(CONFIG_S3C2412_DMA) += dma.o obj-$(CONFIG_S3C2412_PM) += pm.o obj-$(CONFIG_S3C2412_PM_SLEEP) += sleep.o
arch/arm/mach-s3c2440/Kconfig +0 -2
@@ -8,7 +8,6 @@ config CPU_S3C2440 select S3C_GPIO_PULL_UP select S3C2410_CLOCK select S3C2410_PM if PM - select S3C2410_GPIO select S3C2440_DMA if S3C2410_DMA select CPU_S3C244X select CPU_LLSERIAL_S3C2440
@@ -20,7 +19,6 @@ config CPU_S3C2442 select CPU_ARM920T select S3C_GPIO_PULL_DOWN select S3C2410_CLOCK - select S3C2410_GPIO select S3C2410_PM if PM select CPU_S3C244X select CPU_LLSERIAL_S3C2440
arch/arm/plat-s3c24xx/Makefile +0 -2
@@ -15,8 +15,6 @@ obj- := obj-y += cpu.o obj-y += irq.o obj-y += devs.o -obj-y += gpio.o -obj-y += gpiolib.o obj-y += clock.o obj-$(CONFIG_S3C24XX_DCLK) += clock-dclk.o
arch/arm/plat-s3c24xx/gpio.c deleted +0 -96
96 lines not on this page · raw message
drivers/gpio/Kconfig +4 -0
@@ -135,6 +135,10 @@ config GPIO_PLAT_SAMSUNG def_bool y depends on SAMSUNG_GPIOLIB_4BIT +config GPIO_S3C24XX + def_bool y + depends on PLAT_S3C24XX + config GPIO_S5PC100 def_bool y depends on CPU_S5PC100
drivers/gpio/Makefile +1 -0
@@ -40,6 +40,7 @@ obj-$(CONFIG_GPIO_PL061) += gpio-pl061.o obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o obj-$(CONFIG_GPIO_PLAT_SAMSUNG) += gpio-plat-samsung.o +obj-$(CONFIG_GPIO_S3C24XX) += gpio-s3c24xx.o obj-$(CONFIG_GPIO_S5PC100) += gpio-s5pc100.o obj-$(CONFIG_GPIO_S5PV210) += gpio-s5pv210.o
drivers/gpio/gpio-s3c24xx.c renamed from arch/arm/plat-s3c24xx/gpiolib.c +62 -8
95 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 1/7 gpio/s3c24xx: move gpio driver into drivers/gpio/
Quoted 1 line · Kukjin Kim
(snip)...
Hi Grant,
I didn't get any comments on this series, gpio-samsung patches for consolidation of Samsung gpiolib. Please let me know whether this is ok to you or not. And I think, if you're ok, this should be sent to upstream via both gpio tree and arm(samsung) tree to avoid conflicts...
As a note, following is its status...
Kukjin Kim (9):
ARM: SAMSUNG: Move map header file into plat-samsung gpio/s3c24xx: move gpio driver into drivers/gpio/ gpio/s3c64xx: move gpio driver into drivers/gpio/ gpio/s5p64x0: move gpio driver into drivers/gpio/ gpio/samsung: Remove useless old Samsung related GPIO drivers gpio/samsung: Added gpio-samsung.c to support Samsung GPIOs
ARM: SAMSUNG: Update the name of regarding Samsung GPIO
ARM: SAMSUNG: Remove useless Samsung GPIO related CONFIGs Merge branch 'next/topic-plat-samsung-1' into next/topic-gpio-samsung
arch/arm/Kconfig | 3 -
arch/arm/mach-exynos4/include/mach/pm-core.h | 2 +-
arch/arm/mach-s3c2410/Kconfig | 7 -
arch/arm/mach-s3c2410/Makefile | 1 -
arch/arm/mach-s3c2410/include/mach/gpio-fns.h | 99 +-
arch/arm/mach-s3c2410/include/mach/gpio-track.h | 6 +-
arch/arm/mach-s3c2410/include/mach/map.h | 52 +-
arch/arm/mach-s3c2410/include/mach/pm-core.h | 2 +-
arch/arm/mach-s3c2410/s3c2410.c | 4 +-
arch/arm/mach-s3c2412/Kconfig | 1 -
arch/arm/mach-s3c2412/Makefile | 1 -
arch/arm/mach-s3c2412/gpio.c | 2 +-
arch/arm/mach-s3c2416/Kconfig | 1 -
arch/arm/mach-s3c2416/s3c2416.c | 4 +-
arch/arm/mach-s3c2440/Kconfig | 4 -
arch/arm/mach-s3c2440/s3c2440.c | 4 +-
arch/arm/mach-s3c2440/s3c2442.c | 4 +-
arch/arm/mach-s3c2443/Kconfig | 1 -
arch/arm/mach-s3c2443/s3c2443.c | 4 +-
arch/arm/mach-s3c64xx/Makefile | 1 -
arch/arm/mach-s3c64xx/gpiolib.c | 290 ---
arch/arm/mach-s3c64xx/include/mach/map.h | 9 +-
arch/arm/mach-s3c64xx/include/mach/pm-core.h | 2 +-
arch/arm/mach-s5p64x0/Makefile | 2 +-
arch/arm/mach-s5p64x0/gpiolib.c | 511 ----
arch/arm/mach-s5pv210/include/mach/pm-core.h | 2 +-
arch/arm/plat-s3c24xx/Kconfig | 1 -
arch/arm/plat-s3c24xx/Makefile | 2 -
arch/arm/plat-s3c24xx/gpio.c | 96 -
arch/arm/plat-s3c24xx/gpiolib.c | 229 --
arch/arm/plat-s3c24xx/include/plat/map.h | 100 -
arch/arm/plat-s5p/Kconfig | 3 -
arch/arm/plat-s5p/irq-gpioint.c | 10 +-
arch/arm/plat-samsung/Kconfig | 27 -
arch/arm/plat-samsung/Makefile | 2 -
arch/arm/plat-samsung/gpio-config.c | 431 ----
arch/arm/plat-samsung/gpio.c | 167 --
.../plat-samsung/include/plat/gpio-cfg-helpers.h | 172 +-
arch/arm/plat-samsung/include/plat/gpio-cfg.h | 34 +-
arch/arm/plat-samsung/include/plat/gpio-core.h | 97 +-
arch/arm/plat-samsung/include/plat/gpio-fns.h | 98 +
arch/arm/plat-samsung/include/plat/map-s3c.h | 84 +
.../include/plat/map-s5p.h | 6 +-
arch/arm/plat-samsung/include/plat/pm.h | 10 +-
arch/arm/plat-samsung/pm-gpio.c | 72 +-
arch/arm/plat-samsung/pm.c | 6 +-
drivers/gpio/Kconfig | 16 -
drivers/gpio/Makefile | 7 +-
drivers/gpio/gpio-exynos4.c | 385 ---
drivers/gpio/gpio-plat-samsung.c | 205 --
drivers/gpio/gpio-s5pc100.c | 354 ---
drivers/gpio/gpio-s5pv210.c | 287 ---
drivers/gpio/gpio-samsung.c | 2686
++++++++++++++++++++
53 files changed, 3072 insertions(+), 3534 deletions(-)
delete mode 100644 arch/arm/mach-s3c64xx/gpiolib.c
delete mode 100644 arch/arm/mach-s5p64x0/gpiolib.c
delete mode 100644 arch/arm/plat-s3c24xx/gpio.c
delete mode 100644 arch/arm/plat-s3c24xx/gpiolib.c
delete mode 100644 arch/arm/plat-s3c24xx/include/plat/map.h
delete mode 100644 arch/arm/plat-samsung/gpio-config.c
delete mode 100644 arch/arm/plat-samsung/gpio.c
create mode 100644 arch/arm/plat-samsung/include/plat/gpio-fns.h
create mode 100644 arch/arm/plat-samsung/include/plat/map-s3c.h
rename arch/arm/{plat-s5p => plat-samsung}/include/plat/map-s5p.h (94%)
delete mode 100644 drivers/gpio/gpio-exynos4.c
delete mode 100644 drivers/gpio/gpio-plat-samsung.c
delete mode 100644 drivers/gpio/gpio-s5pc100.c
delete mode 100644 drivers/gpio/gpio-s5pv210.c
create mode 100644 drivers/gpio/gpio-samsung.cThanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/7 gpio/s3c24xx: move gpio driver into drivers/gpio/
Quoted 14 lines · Kukjin Kim
Quoted 1 line · Kukjin Kim
(snip)...
Hi Grant,
I didn't get any comments on this series, gpio-samsung patches for consolidation of Samsung gpiolib. Please let me know whether this is ok to you or not. And I think, if you're ok, this should be sent to upstream via both gpio tree and arm(samsung) tree to avoid conflicts...
As a note, following is its status...
Quoted 10 lines
Kukjin Kim (9):
ARM: SAMSUNG: Move map header file into plat-samsung gpio/s3c24xx: move gpio driver intodrivers/gpio/gpio/s3c64xx: move gpio driver intodrivers/gpio/gpio/s5p64x0: move gpio driver intodrivers/gpio/gpio/samsung: Remove useless old Samsung related GPIO drivers gpio/samsung: Addedgpio-samsung.cto support Samsung GPIOs
ARM: SAMSUNG: Update the name of regarding Samsung GPIO
ARM: SAMSUNG: Remove useless Samsung GPIO related CONFIGs Merge branch 'next/topic-plat-samsung-1' into next/topic-gpio-samsung
Actually, even though I said I would pick it up, you've already got it in a tree, so you can go ahead and merge it with my ack. I don't see any major risk of conflicts for the next merge window, so there is no need to merge it in the gpio tree also.
g.
Quoted 80 lines
arch/arm/Kconfig | 3 - arch/arm/mach-exynos4/include/mach/pm-core.h | 2 +- arch/arm/mach-s3c2410/Kconfig | 7 - arch/arm/mach-s3c2410/Makefile | 1 - arch/arm/mach-s3c2410/include/mach/gpio-fns.h | 99 +- arch/arm/mach-s3c2410/include/mach/gpio-track.h | 6 +- arch/arm/mach-s3c2410/include/mach/map.h | 52 +- arch/arm/mach-s3c2410/include/mach/pm-core.h | 2 +- arch/arm/mach-s3c2410/s3c2410.c | 4 +- arch/arm/mach-s3c2412/Kconfig | 1 - arch/arm/mach-s3c2412/Makefile | 1 - arch/arm/mach-s3c2412/gpio.c | 2 +- arch/arm/mach-s3c2416/Kconfig | 1 - arch/arm/mach-s3c2416/s3c2416.c | 4 +- arch/arm/mach-s3c2440/Kconfig | 4 - arch/arm/mach-s3c2440/s3c2440.c | 4 +- arch/arm/mach-s3c2440/s3c2442.c | 4 +- arch/arm/mach-s3c2443/Kconfig | 1 - arch/arm/mach-s3c2443/s3c2443.c | 4 +- arch/arm/mach-s3c64xx/Makefile | 1 - arch/arm/mach-s3c64xx/gpiolib.c | 290 --- arch/arm/mach-s3c64xx/include/mach/map.h | 9 +- arch/arm/mach-s3c64xx/include/mach/pm-core.h | 2 +- arch/arm/mach-s5p64x0/Makefile | 2 +- arch/arm/mach-s5p64x0/gpiolib.c | 511 ---- arch/arm/mach-s5pv210/include/mach/pm-core.h | 2 +- arch/arm/plat-s3c24xx/Kconfig | 1 - arch/arm/plat-s3c24xx/Makefile | 2 - arch/arm/plat-s3c24xx/gpio.c | 96 - arch/arm/plat-s3c24xx/gpiolib.c | 229 -- arch/arm/plat-s3c24xx/include/plat/map.h | 100 - arch/arm/plat-s5p/Kconfig | 3 - arch/arm/plat-s5p/irq-gpioint.c | 10 +- arch/arm/plat-samsung/Kconfig | 27 - arch/arm/plat-samsung/Makefile | 2 - arch/arm/plat-samsung/gpio-config.c | 431 ---- arch/arm/plat-samsung/gpio.c | 167 -- .../plat-samsung/include/plat/gpio-cfg-helpers.h | 172 +- arch/arm/plat-samsung/include/plat/gpio-cfg.h | 34 +- arch/arm/plat-samsung/include/plat/gpio-core.h | 97 +- arch/arm/plat-samsung/include/plat/gpio-fns.h | 98 + arch/arm/plat-samsung/include/plat/map-s3c.h | 84 + .../include/plat/map-s5p.h | 6 +- arch/arm/plat-samsung/include/plat/pm.h | 10 +- arch/arm/plat-samsung/pm-gpio.c | 72 +- arch/arm/plat-samsung/pm.c | 6 +- drivers/gpio/Kconfig | 16 - drivers/gpio/Makefile | 7 +- drivers/gpio/gpio-exynos4.c | 385 --- drivers/gpio/gpio-plat-samsung.c | 205 -- drivers/gpio/gpio-s5pc100.c | 354 --- drivers/gpio/gpio-s5pv210.c | 287 --- drivers/gpio/gpio-samsung.c | 2686 ++++++++++++++++++++ 53 files changed, 3072 insertions(+), 3534 deletions(-) delete mode 100644 arch/arm/mach-s3c64xx/gpiolib.c delete mode 100644 arch/arm/mach-s5p64x0/gpiolib.c delete mode 100644 arch/arm/plat-s3c24xx/gpio.c delete mode 100644 arch/arm/plat-s3c24xx/gpiolib.c delete mode 100644 arch/arm/plat-s3c24xx/include/plat/map.h delete mode 100644 arch/arm/plat-samsung/gpio-config.c delete mode 100644 arch/arm/plat-samsung/gpio.c create mode 100644 arch/arm/plat-samsung/include/plat/gpio-fns.h create mode 100644 arch/arm/plat-samsung/include/plat/map-s3c.h rename arch/arm/{plat-s5p => plat-samsung}/include/plat/map-s5p.h (94%) delete mode 100644 drivers/gpio/gpio-exynos4.c delete mode 100644 drivers/gpio/gpio-plat-samsung.c delete mode 100644 drivers/gpio/gpio-s5pc100.c delete mode 100644 drivers/gpio/gpio-s5pv210.c create mode 100644 drivers/gpio/gpio-samsung.cThanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/7 gpio/s3c24xx: move gpio driver into drivers/gpio/
Quoted 11 lines · Grant Likely
Quoted 9 lines · Kukjin Kim
Quoted 1 line · Kukjin Kim
(snip)...
Hi Grant,
I didn't get any comments on this series, gpio-samsung patches for consolidation of Samsung gpiolib. Please let me know whether this is ok
to
Quoted 1 line
Quoted 1 line
you or not. And I think, if you're ok, this should be sent to upstream
via
Quoted 4 lines
Quoted 4 lines
both gpio tree and arm(samsung) tree to avoid conflicts...
As a note, following is its status...
Quoted 10 lines
Quoted 10 lines
Kukjin Kim (9):
ARM: SAMSUNG: Move map header file into plat-samsung gpio/s3c24xx: move gpio driver intodrivers/gpio/gpio/s3c64xx: move gpio driver intodrivers/gpio/gpio/s5p64x0: move gpio driver intodrivers/gpio/gpio/samsung: Remove useless old Samsung related GPIO drivers gpio/samsung: Addedgpio-samsung.cto support Samsung GPIOs
ARM: SAMSUNG: Update the name of regarding Samsung GPIO
ARM: SAMSUNG: Remove useless Samsung GPIO related CONFIGs Merge branch 'next/topic-plat-samsung-1' into
next/topic-gpio-samsung
Quoted 6 lines
Actually, even though I said I would pick it up, you've already got it in a tree, so you can go ahead and merge it with my ack. I don't see any major risk of conflicts for the next merge window, so there is no need to merge it in the gpio tree also.
Hi Grant,
OK, I will do it after adding your ack.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 81 lines
Quoted 81 lines
arch/arm/Kconfig | 3 - arch/arm/mach-exynos4/include/mach/pm-core.h | 2 +- arch/arm/mach-s3c2410/Kconfig | 7 - arch/arm/mach-s3c2410/Makefile | 1 - arch/arm/mach-s3c2410/include/mach/gpio-fns.h | 99 +- arch/arm/mach-s3c2410/include/mach/gpio-track.h | 6 +- arch/arm/mach-s3c2410/include/mach/map.h | 52 +- arch/arm/mach-s3c2410/include/mach/pm-core.h | 2 +- arch/arm/mach-s3c2410/s3c2410.c | 4 +- arch/arm/mach-s3c2412/Kconfig | 1 - arch/arm/mach-s3c2412/Makefile | 1 - arch/arm/mach-s3c2412/gpio.c | 2 +- arch/arm/mach-s3c2416/Kconfig | 1 - arch/arm/mach-s3c2416/s3c2416.c | 4 +- arch/arm/mach-s3c2440/Kconfig | 4 - arch/arm/mach-s3c2440/s3c2440.c | 4 +- arch/arm/mach-s3c2440/s3c2442.c | 4 +- arch/arm/mach-s3c2443/Kconfig | 1 - arch/arm/mach-s3c2443/s3c2443.c | 4 +- arch/arm/mach-s3c64xx/Makefile | 1 - arch/arm/mach-s3c64xx/gpiolib.c | 290 --- arch/arm/mach-s3c64xx/include/mach/map.h | 9 +- arch/arm/mach-s3c64xx/include/mach/pm-core.h | 2 +- arch/arm/mach-s5p64x0/Makefile | 2 +- arch/arm/mach-s5p64x0/gpiolib.c | 511 ---- arch/arm/mach-s5pv210/include/mach/pm-core.h | 2 +- arch/arm/plat-s3c24xx/Kconfig | 1 - arch/arm/plat-s3c24xx/Makefile | 2 - arch/arm/plat-s3c24xx/gpio.c | 96 - arch/arm/plat-s3c24xx/gpiolib.c | 229 -- arch/arm/plat-s3c24xx/include/plat/map.h | 100 - arch/arm/plat-s5p/Kconfig | 3 - arch/arm/plat-s5p/irq-gpioint.c | 10 +- arch/arm/plat-samsung/Kconfig | 27 - arch/arm/plat-samsung/Makefile | 2 - arch/arm/plat-samsung/gpio-config.c | 431 ---- arch/arm/plat-samsung/gpio.c | 167 -- .../plat-samsung/include/plat/gpio-cfg-helpers.h | 172 +- arch/arm/plat-samsung/include/plat/gpio-cfg.h | 34 +- arch/arm/plat-samsung/include/plat/gpio-core.h | 97 +- arch/arm/plat-samsung/include/plat/gpio-fns.h | 98 + arch/arm/plat-samsung/include/plat/map-s3c.h | 84 + .../include/plat/map-s5p.h | 6 +- arch/arm/plat-samsung/include/plat/pm.h | 10 +- arch/arm/plat-samsung/pm-gpio.c | 72 +- arch/arm/plat-samsung/pm.c | 6 +- drivers/gpio/Kconfig | 16 - drivers/gpio/Makefile | 7 +- drivers/gpio/gpio-exynos4.c | 385 --- drivers/gpio/gpio-plat-samsung.c | 205 -- drivers/gpio/gpio-s5pc100.c | 354 --- drivers/gpio/gpio-s5pv210.c | 287 --- drivers/gpio/gpio-samsung.c | 2686 ++++++++++++++++++++ 53 files changed, 3072 insertions(+), 3534 deletions(-) delete mode 100644 arch/arm/mach-s3c64xx/gpiolib.c delete mode 100644 arch/arm/mach-s5p64x0/gpiolib.c delete mode 100644 arch/arm/plat-s3c24xx/gpio.c delete mode 100644 arch/arm/plat-s3c24xx/gpiolib.c delete mode 100644 arch/arm/plat-s3c24xx/include/plat/map.h delete mode 100644 arch/arm/plat-samsung/gpio-config.c delete mode 100644 arch/arm/plat-samsung/gpio.c create mode 100644 arch/arm/plat-samsung/include/plat/gpio-fns.h create mode 100644 arch/arm/plat-samsung/include/plat/map-s3c.h rename arch/arm/{plat-s5p => plat-samsung}/include/plat/map-s5p.h (94%) delete mode 100644 drivers/gpio/gpio-exynos4.c delete mode 100644 drivers/gpio/gpio-plat-samsung.c delete mode 100644 drivers/gpio/gpio-s5pc100.c delete mode 100644 drivers/gpio/gpio-s5pv210.c create mode 100644 drivers/gpio/gpio-samsung.cThanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 2/7 gpio/s3c64xx: move gpio driver into drivers/gpio/
In reply to Kukjin Kim--- arch/arm/mach-s3c64xx/Makefile | 1 - drivers/gpio/Kconfig | 4 ++++ drivers/gpio/Makefile | 1 + .../gpiolib.c => drivers/gpio/gpio-s3c64xx.c | 3 +-- 4 files changed, 6 insertions(+), 3 deletions(-) rename arch/arm/mach-s3c64xx/gpiolib.c => drivers/gpio/gpio-s3c64xx.c (99%)
arch/arm/mach-s3c64xx/Makefile +0 -1
@@ -13,7 +13,6 @@ obj- := # Core files obj-y += cpu.o obj-y += clock.o -obj-y += gpiolib.o # Core support for S3C6400 system
drivers/gpio/Kconfig +4 -0
@@ -139,6 +139,10 @@ config GPIO_S3C24XX def_bool y depends on PLAT_S3C24XX +config GPIO_S3C64XX + def_bool y + depends on ARCH_S3C64XX + config GPIO_S5PC100 def_bool y depends on CPU_S5PC100
drivers/gpio/Makefile +1 -0
@@ -41,6 +41,7 @@ obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o obj-$(CONFIG_GPIO_PLAT_SAMSUNG) += gpio-plat-samsung.o obj-$(CONFIG_GPIO_S3C24XX) += gpio-s3c24xx.o +obj-$(CONFIG_GPIO_S3C64XX) += gpio-s3c64xx.o obj-$(CONFIG_GPIO_S5PC100) += gpio-s5pc100.o obj-$(CONFIG_GPIO_S5PV210) += gpio-s5pv210.o
drivers/gpio/gpio-s3c64xx.c renamed from arch/arm/mach-s3c64xx/gpiolib.c +1 -2
@@ -1,5 +1,4 @@ -/* arch/arm/plat-s3c64xx/gpiolib.c -* +/* * Copyright 2008 Openmoko, Inc. * Copyright 2008 Simtec Electronics * Ben Dooks <[email protected]>
Signature · 1 line
1.7.1
PATCH 3/7 gpio/s5p64x0: move gpio driver into drivers/gpio/
In reply to Kukjin Kim--- arch/arm/mach-s5p64x0/Makefile | 2 +- drivers/gpio/Kconfig | 4 ++++ drivers/gpio/Makefile | 1 + .../gpiolib.c => drivers/gpio/gpio-s5p64x0.c | 3 +-- 4 files changed, 7 insertions(+), 3 deletions(-) rename arch/arm/mach-s5p64x0/gpiolib.c => drivers/gpio/gpio-s5p64x0.c (99%)
arch/arm/mach-s5p64x0/Makefile +1 -1
@@ -12,7 +12,7 @@ obj- := # Core support for S5P64X0 system -obj-$(CONFIG_ARCH_S5P64X0) += cpu.o init.o clock.o dma.o gpiolib.o +obj-$(CONFIG_ARCH_S5P64X0) += cpu.o init.o clock.o dma.o obj-$(CONFIG_ARCH_S5P64X0) += setup-i2c0.o irq-eint.o obj-$(CONFIG_CPU_S5P6440) += clock-s5p6440.o obj-$(CONFIG_CPU_S5P6450) += clock-s5p6450.o
drivers/gpio/Kconfig +4 -0
@@ -143,6 +143,10 @@ config GPIO_S3C64XX def_bool y depends on ARCH_S3C64XX +config GPIO_S5P64X0 + def_bool y + depends on ARCH_S5P64X0 + config GPIO_S5PC100 def_bool y depends on CPU_S5PC100
drivers/gpio/Makefile +1 -0
@@ -42,6 +42,7 @@ obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o obj-$(CONFIG_GPIO_PLAT_SAMSUNG) += gpio-plat-samsung.o obj-$(CONFIG_GPIO_S3C24XX) += gpio-s3c24xx.o obj-$(CONFIG_GPIO_S3C64XX) += gpio-s3c64xx.o +obj-$(CONFIG_GPIO_S5P64X0) += gpio-s5p64x0.o obj-$(CONFIG_GPIO_S5PC100) += gpio-s5pc100.o obj-$(CONFIG_GPIO_S5PV210) += gpio-s5pv210.o
drivers/gpio/gpio-s5p64x0.c renamed from arch/arm/mach-s5p64x0/gpiolib.c +1 -2
@@ -1,5 +1,4 @@ -/* linux/arch/arm/mach-s5p64x0/gpiolib.c -* +/* * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd. * http://www.samsung.com *
Signature · 1 line
1.7.1
PATCH 4/7 gpio/samsung: Remove useless old Samsung related GPIO drivers
In reply to Kukjin KimSince gpio-samsung.c can replace old Samsung GPIO drivers, this patch removes them.
--- arch/arm/plat-samsung/Makefile | 2 - arch/arm/plat-samsung/gpio-config.c | 431 ----------------------------- arch/arm/plat-samsung/gpio.c | 167 ------------ drivers/gpio/Kconfig | 28 -- drivers/gpio/Makefile | 9 - drivers/gpio/gpio-exynos4.c | 385 -------------------------- drivers/gpio/gpio-plat-samsung.c | 205 -------------- drivers/gpio/gpio-s3c24xx.c | 283 ------------------- drivers/gpio/gpio-s3c64xx.c | 289 -------------------- drivers/gpio/gpio-s5p64x0.c | 510 ----------------------------------- drivers/gpio/gpio-s5pc100.c | 354 ------------------------ drivers/gpio/gpio-s5pv210.c | 287 -------------------- 12 files changed, 0 insertions(+), 2950 deletions(-) delete mode 100644 arch/arm/plat-samsung/gpio-config.c delete mode 100644 arch/arm/plat-samsung/gpio.c delete mode 100644 drivers/gpio/gpio-exynos4.c delete mode 100644 drivers/gpio/gpio-plat-samsung.c delete mode 100644 drivers/gpio/gpio-s3c24xx.c delete mode 100644 drivers/gpio/gpio-s3c64xx.c delete mode 100644 drivers/gpio/gpio-s5p64x0.c delete mode 100644 drivers/gpio/gpio-s5pc100.c delete mode 100644 drivers/gpio/gpio-s5pv210.c
arch/arm/plat-samsung/Makefile +0 -2
@@ -15,8 +15,6 @@ obj-y += init.o obj-$(CONFIG_ARCH_USES_GETTIMEOFFSET) += time.o obj-y += clock.o obj-y += pwm-clock.o -obj-y += gpio.o -obj-y += gpio-config.o obj-y += dev-asocdma.o obj-$(CONFIG_SAMSUNG_CLKSRC) += clock-clksrc.o
arch/arm/plat-samsung/gpio-config.c deleted +0 -431
431 lines not on this page · raw message
arch/arm/plat-samsung/gpio.c deleted +0 -167
167 lines not on this page · raw message
drivers/gpio/Kconfig +0 -28
@@ -95,10 +95,6 @@ config GPIO_EP93XX depends on ARCH_EP93XX select GPIO_GENERIC -config GPIO_EXYNOS4 - def_bool y - depends on CPU_EXYNOS4210 - config GPIO_MPC5200 def_bool y depends on PPC_MPC52xx
@@ -131,30 +127,6 @@ config GPIO_MXS select GPIO_GENERIC select GENERIC_IRQ_CHIP -config GPIO_PLAT_SAMSUNG - def_bool y - depends on SAMSUNG_GPIOLIB_4BIT - -config GPIO_S3C24XX - def_bool y - depends on PLAT_S3C24XX - -config GPIO_S3C64XX - def_bool y - depends on ARCH_S3C64XX - -config GPIO_S5P64X0 - def_bool y - depends on ARCH_S5P64X0 - -config GPIO_S5PC100 - def_bool y - depends on CPU_S5PC100 - -config GPIO_S5PV210 - def_bool y - depends on CPU_S5PV210 - config GPIO_PL061 bool "PrimeCell PL061 GPIO support" depends on ARM_AMBA
drivers/gpio/Makefile +0 -9
@@ -15,7 +15,6 @@ obj-$(CONFIG_GPIO_BT8XX) += gpio-bt8xx.o obj-$(CONFIG_GPIO_CS5535) += gpio-cs5535.o obj-$(CONFIG_GPIO_DA9052) += gpio-da9052.o obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o -obj-$(CONFIG_GPIO_EXYNOS4) += gpio-exynos4.o obj-$(CONFIG_GPIO_IT8761E) += gpio-it8761e.o obj-$(CONFIG_GPIO_JANZ_TTL) += gpio-janz-ttl.o obj-$(CONFIG_GPIO_LANGWELL) += gpio-langwell.o
@@ -38,14 +37,6 @@ obj-$(CONFIG_GPIO_PCF857X) += gpio-pcf857x.o obj-$(CONFIG_GPIO_PCH) += gpio-pch.o obj-$(CONFIG_GPIO_PL061) += gpio-pl061.o obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o - -obj-$(CONFIG_GPIO_PLAT_SAMSUNG) += gpio-plat-samsung.o -obj-$(CONFIG_GPIO_S3C24XX) += gpio-s3c24xx.o -obj-$(CONFIG_GPIO_S3C64XX) += gpio-s3c64xx.o -obj-$(CONFIG_GPIO_S5P64X0) += gpio-s5p64x0.o -obj-$(CONFIG_GPIO_S5PC100) += gpio-s5pc100.o -obj-$(CONFIG_GPIO_S5PV210) += gpio-s5pv210.o - obj-$(CONFIG_GPIO_SCH) += gpio-sch.o obj-$(CONFIG_GPIO_STMPE) += gpio-stmpe.o obj-$(CONFIG_GPIO_SX150X) += gpio-sx150x.o
drivers/gpio/gpio-exynos4.c deleted +0 -385
385 lines not on this page · raw message
drivers/gpio/gpio-plat-samsung.c deleted +0 -205
205 lines not on this page · raw message
drivers/gpio/gpio-s3c24xx.c deleted +0 -283
283 lines not on this page · raw message
drivers/gpio/gpio-s3c64xx.c deleted +0 -289
289 lines not on this page · raw message
drivers/gpio/gpio-s5p64x0.c deleted +0 -510
510 lines not on this page · raw message
drivers/gpio/gpio-s5pc100.c deleted +0 -354
354 lines not on this page · raw message
drivers/gpio/gpio-s5pv210.c deleted +0 -287
287 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 4/7 gpio/samsung: Remove useless old Samsung related GPIO drivers
Quoted 6 lines · Kukjin Kim
Since
gpio-samsung.ccan replace old Samsung GPIO drivers, this patch removes them.Cc Ben Dooks <[email protected]>Cc Grant Likely <[email protected]>Signed-off-by Kukjin Kim <[email protected]>
Removing this code before adding the new code means it is not bisectable. I'll squash the two patches together when I pick them up..
g.
Quoted 24 lines
--- arch/arm/plat-samsung/Makefile | 2 - arch/arm/plat-samsung/gpio-config.c | 431 ----------------------------- arch/arm/plat-samsung/gpio.c | 167 ------------ drivers/gpio/Kconfig | 28 -- drivers/gpio/Makefile | 9 - drivers/gpio/gpio-exynos4.c | 385 -------------------------- drivers/gpio/gpio-plat-samsung.c | 205 -------------- drivers/gpio/gpio-s3c24xx.c | 283 ------------------- drivers/gpio/gpio-s3c64xx.c | 289 -------------------- drivers/gpio/gpio-s5p64x0.c | 510 ----------------------------------- drivers/gpio/gpio-s5pc100.c | 354 ------------------------ drivers/gpio/gpio-s5pv210.c | 287 -------------------- 12 files changed, 0 insertions(+), 2950 deletions(-) delete mode 100644 arch/arm/plat-samsung/gpio-config.c delete mode 100644 arch/arm/plat-samsung/gpio.c delete mode 100644 drivers/gpio/gpio-exynos4.c delete mode 100644 drivers/gpio/gpio-plat-samsung.c delete mode 100644 drivers/gpio/gpio-s3c24xx.c delete mode 100644 drivers/gpio/gpio-s3c64xx.c delete mode 100644 drivers/gpio/gpio-s5p64x0.c delete mode 100644 drivers/gpio/gpio-s5pc100.c delete mode 100644 drivers/gpio/gpio-s5pv210.c
PATCH 4/7 gpio/samsung: Remove useless old Samsung related GPIO drivers
Quoted 5 lines · Grant Likely
Quoted 3 lines · Kukjin Kim
Since
gpio-samsung.ccan replace old Samsung GPIO drivers, this patch removes them.
Quoted 8 lines
Quoted 3 lines
Cc Ben Dooks <[email protected]>Cc Grant Likely <[email protected]>Signed-off-by Kukjin Kim <[email protected]>Removing this code before adding the new code means it is not bisectable. I'll squash the two patches together when I pick them up..
OK, no problem and would be better to me if you could create some topic branch for this series. I'd like to merge it to avoid conflicts with Samsung stuff.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
Quoted 4 lines
Quoted 4 lines
--- arch/arm/plat-samsung/Makefile | 2 - arch/arm/plat-samsung/gpio-config.c | 431
-----------------------------
Quoted 8 lines
Quoted 8 lines
arch/arm/plat-samsung/gpio.c | 167 ------------ drivers/gpio/Kconfig | 28 -- drivers/gpio/Makefile | 9 - drivers/gpio/gpio-exynos4.c | 385 -------------------------- drivers/gpio/gpio-plat-samsung.c | 205 -------------- drivers/gpio/gpio-s3c24xx.c | 283 ------------------- drivers/gpio/gpio-s3c64xx.c | 289 -------------------- drivers/gpio/gpio-s5p64x0.c | 510
-----------------------------------
Quoted 13 lines
Quoted 13 lines
drivers/gpio/gpio-s5pc100.c | 354 ------------------------ drivers/gpio/gpio-s5pv210.c | 287 -------------------- 12 files changed, 0 insertions(+), 2950 deletions(-) delete mode 100644 arch/arm/plat-samsung/gpio-config.c delete mode 100644 arch/arm/plat-samsung/gpio.c delete mode 100644 drivers/gpio/gpio-exynos4.c delete mode 100644 drivers/gpio/gpio-plat-samsung.c delete mode 100644 drivers/gpio/gpio-s3c24xx.c delete mode 100644 drivers/gpio/gpio-s3c64xx.c delete mode 100644 drivers/gpio/gpio-s5p64x0.c delete mode 100644 drivers/gpio/gpio-s5pc100.c delete mode 100644 drivers/gpio/gpio-s5pv210.c
PATCH 5/7 gpio/samsung: Added gpio-samsung.c to support Samsung GPIOs
In reply to Kukjin KimThis patch adds support for Samsung GPIOs with one gpio driver. Actually there are drivers/gpio-s3c24xx.c, gpio-s3c64xx.c, gpio-s5p64x0.c, gpio-s5pc100.c, gpio-s5pv210.c, gpio-exynos4.c, gpio-plat-samsung.c, plat-samsung/gpio-config.c and gpio.c to support each Samsung SoCs before.
Basically, the gpio-samsung.c has been made by their merging and removing duplicated definitions.
Note: gpio-samsung.c includes some SoC dependent codes and it will be replaced next time.
--- drivers/gpio/Makefile | 1 + drivers/gpio/gpio-samsung.c | 2686 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2687 insertions(+), 0 deletions(-) create mode 100644 drivers/gpio/gpio-samsung.c
drivers/gpio/Makefile +1 -0
@@ -37,6 +37,7 @@ obj-$(CONFIG_GPIO_PCF857X) += gpio-pcf857x.o obj-$(CONFIG_GPIO_PCH) += gpio-pch.o obj-$(CONFIG_GPIO_PL061) += gpio-pl061.o obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o +obj-$(CONFIG_PLAT_SAMSUNG) += gpio-samsung.o obj-$(CONFIG_GPIO_SCH) += gpio-sch.o obj-$(CONFIG_GPIO_STMPE) += gpio-stmpe.o obj-$(CONFIG_GPIO_SX150X) += gpio-sx150x.o
drivers/gpio/gpio-samsung.c new file +2686 -0
2,686 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 5/7 gpio/samsung: Added gpio-samsung.c to support Samsung GPIOs
Quoted 11 lines · Kukjin Kim
This patch adds support for Samsung GPIOs with one gpio driver. Actually there are
drivers/gpio-s3c24xx.c,gpio-s3c64xx.c,gpio-s5p64x0.c,gpio-s5pc100.c,gpio-s5pv210.c,gpio-exynos4.c,gpio-plat-samsung.c,plat-samsung/gpio-config.candgpio.cto support each Samsung SoCs before.
Basically, thegpio-samsung.chas been made by their merging and removing duplicated definitions.Note:
gpio-samsung.cincludes some SoC dependent codes and it will be replaced next time.
Quoted 8 lines
Cc Ben Dooks <[email protected]>Cc Grant Likely <[email protected]>Signed-off-by Kukjin Kim <[email protected]>--- drivers/gpio/Makefile | 1 + drivers/gpio/gpio-samsung.c | 2686 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2687 insertions(+), 0 deletions(-) create mode 100644 drivers/gpio/gpio-samsung.c
It's a big driver file, but I'll go ahead and pick this up without too much review because at least it is all in the same place now. I'll expect further cleanup in future patches.
g.
PATCH 5/7 gpio/samsung: Added gpio-samsung.c to support Samsung GPIOs
Quoted 19 lines · Grant Likely
Quoted 11 lines · Kukjin Kim
This patch adds support for Samsung GPIOs with one gpio driver. Actually there are
drivers/gpio-s3c24xx.c,gpio-s3c64xx.c,gpio-s5p64x0.c,gpio-s5pc100.c,gpio-s5pv210.c,gpio-exynos4.c,gpio-plat-samsung.c,plat-samsung/gpio-config.candgpio.cto support each Samsung SoCs before.
Basically, thegpio-samsung.chas been made by their merging and removing duplicated definitions.Note:
gpio-samsung.cincludes some SoC dependent codes and it will be replaced next time.Quoted 6 lines
Cc Ben Dooks <[email protected]>Cc Grant Likely <[email protected]>Signed-off-by Kukjin Kim <[email protected]>--- drivers/gpio/Makefile | 1 + drivers/gpio/gpio-samsung.c | 2686
Quoted 8 lines
+++++++++++++++++++++++++++++++++++++++++++
Quoted 2 lines
2 files changed, 2687 insertions(+), 0 deletions(-) create mode 100644 drivers/gpio/gpio-samsung.cIt's a big driver file, but I'll go ahead and pick this up without too much review because at least it is all in the same place now. I'll expect further cleanup in future patches.
Yes, as you said, I agree this is needed some cleanup. I and my team will do it next time.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 6/7 ARM: SAMSUNG: Update the name of regarding Samsung GPIO
In reply to Kukjin KimAccording to gpio-samsung.c, this patch updates the name of regarding Samsung GPIO. Basically the samsung_xxx prefix is used in gpio-samsung.c instead of s3c_xxx, because unified name can reduce its complexity.
Note: some s3c_xxx stil remains because it is used widely. It will be updated next time.
--- arch/arm/mach-exynos4/include/mach/pm-core.h | 2 +- arch/arm/mach-s3c2410/include/mach/gpio-fns.h | 99 +----------- arch/arm/mach-s3c2410/include/mach/gpio-track.h | 6 +- arch/arm/mach-s3c2410/include/mach/pm-core.h | 2 +- arch/arm/mach-s3c2410/s3c2410.c | 4 +- arch/arm/mach-s3c2412/gpio.c | 2 +- arch/arm/mach-s3c2416/s3c2416.c | 4 +- arch/arm/mach-s3c2440/s3c2440.c | 4 +- arch/arm/mach-s3c2440/s3c2442.c | 4 +- arch/arm/mach-s3c2443/s3c2443.c | 4 +- arch/arm/mach-s3c64xx/include/mach/pm-core.h | 2 +- arch/arm/mach-s5pv210/include/mach/pm-core.h | 2 +- arch/arm/plat-s5p/irq-gpioint.c | 10 +- .../plat-samsung/include/plat/gpio-cfg-helpers.h | 172 +++++--------------- arch/arm/plat-samsung/include/plat/gpio-cfg.h | 34 ++-- arch/arm/plat-samsung/include/plat/gpio-core.h | 97 +++-------- arch/arm/plat-samsung/include/plat/gpio-fns.h | 98 +++++++++++ arch/arm/plat-samsung/include/plat/pm.h | 10 +- arch/arm/plat-samsung/pm-gpio.c | 72 ++++---- arch/arm/plat-samsung/pm.c | 6 +- 20 files changed, 250 insertions(+), 384 deletions(-) create mode 100644 arch/arm/plat-samsung/include/plat/gpio-fns.h
arch/arm/mach-exynos4/include/mach/pm-core.h +1 -1
@@ -53,7 +53,7 @@ static inline void s3c_pm_restored_gpios(void)/* nothing here yet */ } -static inline void s3c_pm_saved_gpios (void ) +static inline void samsung_pm_saved_gpios (void ) {/* nothing here yet */ }
arch/arm/mach-s3c2410/include/mach/gpio-fns.h +1 -98
99 lines not on this page · raw message
arch/arm/mach-s3c2410/include/mach/gpio-track.h +3 -3
@@ -17,11 +17,11 @@#include <mach/regs-gpio.h> -extern struct s3c_gpio_chip s3c24xx_gpios[]; +extern struct samsung_gpio_chip s3c24xx_gpios[]; -static inline struct s3c_gpio_chip *s3c_gpiolib_getchip (unsigned int pin) +static inline struct samsung_gpio_chip *samsung_gpiolib_getchip (unsigned int pin) { -struct s3c_gpio_chip *chip; +struct samsung_gpio_chip *chip;if (pin >S3C_GPIO_END )return NULL ;
arch/arm/mach-s3c2410/include/mach/pm-core.h +1 -1
@@ -64,4 +64,4 @@ static inline void s3c_pm_arch_update_uart(void __iomem *regs, }static inline void s3c_pm_restored_gpios (void ) { } -static inline void s3c_pm_saved_gpios (void ) { } +static inline void samsung_pm_saved_gpios (void ) { }
arch/arm/mach-s3c2410/s3c2410.c +2 -2
@@ -72,8 +72,8 @@ void __init s3c2410_init_uarts(struct s3c2410_uartcfg *cfg, int no)void __init s3c2410_map_io (void ) { - s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up; - s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up; + s3c24xx_gpiocfg_default.set_pull = s3c24xx_gpio_setpull_1up; + s3c24xx_gpiocfg_default.get_pull = s3c24xx_gpio_getpull_1up;iotable_init (s3c2410_iodesc,ARRAY_SIZE (s3c2410_iodesc)); }
arch/arm/mach-s3c2412/gpio.c +1 -1
@@ -28,7 +28,7 @@int s3c2412_gpio_set_sleepcfg (unsigned int pin,unsigned int state) { -struct s3c_gpio_chip *chip =s3c_gpiolib_getchip (pin); +struct samsung_gpio_chip *chip =samsung_gpiolib_getchip (pin);unsigned long offs = pin - chip->chip.base;unsigned long flags;unsigned long slpcon;
arch/arm/mach-s3c2416/s3c2416.c +2 -2
@@ -118,8 +118,8 @@ void __init s3c2416_init_uarts(struct s3c2410_uartcfg *cfg, int no)void __init s3c2416_map_io (void ) { - s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_updown; - s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_updown; + s3c24xx_gpiocfg_default.set_pull = samsung_gpio_setpull_updown; + s3c24xx_gpiocfg_default.get_pull = samsung_gpio_getpull_updown;/* initialize device information early */ s3c2416_default_sdhci0 ();
arch/arm/mach-s3c2440/s3c2440.c +2 -2
@@ -68,6 +68,6 @@ void __init s3c2440_map_io(void) {s3c244x_map_io (); - s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1up; - s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1up; + s3c24xx_gpiocfg_default.set_pull = s3c24xx_gpio_setpull_1up; + s3c24xx_gpiocfg_default.get_pull = s3c24xx_gpio_getpull_1up; }
arch/arm/mach-s3c2440/s3c2442.c +2 -2
@@ -180,6 +180,6 @@ void __init s3c2442_map_io(void) {s3c244x_map_io (); - s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_1down; - s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_1down; + s3c24xx_gpiocfg_default.set_pull = s3c24xx_gpio_setpull_1down; + s3c24xx_gpiocfg_default.get_pull = s3c24xx_gpio_getpull_1down; }
arch/arm/mach-s3c2443/s3c2443.c +2 -2
@@ -90,8 +90,8 @@ void __init s3c2443_init_uarts(struct s3c2410_uartcfg *cfg, int no)void __init s3c2443_map_io (void ) { - s3c24xx_gpiocfg_default.set_pull = s3c_gpio_setpull_s3c2443; - s3c24xx_gpiocfg_default.get_pull = s3c_gpio_getpull_s3c2443; + s3c24xx_gpiocfg_default.set_pull = s3c2443_gpio_setpull; + s3c24xx_gpiocfg_default.get_pull = s3c2443_gpio_getpull;iotable_init (s3c2443_iodesc,ARRAY_SIZE (s3c2443_iodesc)); }
arch/arm/mach-s3c64xx/include/mach/pm-core.h +1 -1
@@ -104,7 +104,7 @@ static inline void s3c_pm_restored_gpios(void)__raw_writel (0 ,S3C64XX_SLPEN ); } -static inline void s3c_pm_saved_gpios (void ) +static inline void samsung_pm_saved_gpios (void ) {/* turn on the sleep mode and keep it there, as it seems that during * suspend the xCON registers get re-set and thus you can end up with
arch/arm/mach-s5pv210/include/mach/pm-core.h +1 -1
@@ -43,4 +43,4 @@ static inline void s3c_pm_arch_update_uart(void __iomem *regs, }static inline void s3c_pm_restored_gpios (void ) { } -static inline void s3c_pm_saved_gpios (void ) { } +static inline void samsung_pm_saved_gpios (void ) { }
arch/arm/plat-s5p/irq-gpioint.c +5 -5
@@ -35,7 +35,7 @@ struct s5p_gpioint_bank {int start;int nr_groups;int irq; -struct s3c_gpio_chip **chips; +struct samsung_gpio_chip **chips;void (*handler)(unsigned int ,struct irq_desc *); };
@@ -82,7 +82,7 @@ static void s5p_gpioint_handler(unsigned int irq, struct irq_desc *desc)unsigned int pend, mask;for (group =0 ; group < bank->nr_groups; group++) { -struct s3c_gpio_chip *chip = bank->chips[group]; +struct samsung_gpio_chip *chip = bank->chips[group];if (!chip)continue ;
@@ -104,7 +104,7 @@ static void s5p_gpioint_handler(unsigned int irq, struct irq_desc *desc) } } -static __init int s5p_gpioint_add (struct s3c_gpio_chip *chip) +static __init int s5p_gpioint_add (struct samsung_gpio_chip *chip) {static int used_gpioint_groups =0 ;int group = chip->group;
@@ -124,7 +124,7 @@ static __init int s5p_gpioint_add(struct s3c_gpio_chip *chip)return -EINVAL ;if (!bank->handler) { - bank->chips =kzalloc (sizeof (struct s3c_gpio_chip *) * + bank->chips =kzalloc (sizeof (struct samsung_gpio_chip *) * bank->nr_groups,GFP_KERNEL );if (!bank->chips)return -ENOMEM ;
@@ -167,7 +167,7 @@ static __init int s5p_gpioint_add(struct s3c_gpio_chip *chip)int __init s5p_register_gpio_interrupt (int pin) { -struct s3c_gpio_chip *my_chip =s3c_gpiolib_getchip (pin); +struct samsung_gpio_chip *my_chip =samsung_gpiolib_getchip (pin);int offset, group;int ret;
arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h +42 -130
266 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/gpio-cfg.h +17 -17
@@ -24,14 +24,14 @@#ifndef __PLAT_GPIO_CFG_H#define __PLAT_GPIO_CFG_H __FILE__ -typedef unsigned int __bitwise__ s3c_gpio_pull_t; +typedef unsigned int __bitwise__ samsung_gpio_pull_t; typedef unsigned int __bitwise__ s5p_gpio_drvstr_t;/* forward declaration if gpio-core.h hasn't been included */ -struct s3c_gpio_chip ; +struct samsung_gpio_chip ;/** -* struct s3c_gpio_cfg GPIO configuration +* struct samsung_gpio_cfg GPIO configuration * @cfg_eint: Configuration setting when used for external interrupt source * @get_pull: Read the current pull configuration for the GPIO * @set_pull: Set the current pull configuraiton for the GPIO
@@ -44,20 +44,20 @@ struct s3c_gpio_chip;* per-bank configuration information that other systems such as the * external interrupt code will need. * -* @sa s3c_gpio_cfgpin +* @sa samsung_gpio_cfgpin * @sa s3c_gpio_getcfg * @sa s3c_gpio_setpull * @sa s3c_gpio_getpull */ -struct s3c_gpio_cfg { +struct samsung_gpio_cfg {unsigned int cfg_eint; -s3c_gpio_pull_t (*get_pull)(struct s3c_gpio_chip *chip,unsigned offs); -int (*set_pull)(struct s3c_gpio_chip *chip,unsigned offs, -s3c_gpio_pull_t pull); +samsung_gpio_pull_t (*get_pull)(struct samsung_gpio_chip *chip,unsigned offs); +int (*set_pull)(struct samsung_gpio_chip *chip,unsigned offs, +samsung_gpio_pull_t pull); -unsigned (*get_config)(struct s3c_gpio_chip *chip,unsigned offs); -int (*set_config)(struct s3c_gpio_chip *chip,unsigned offs, +unsigned (*get_config)(struct samsung_gpio_chip *chip,unsigned offs); +int (*set_config)(struct samsung_gpio_chip *chip,unsigned offs,unsigned config); };
@@ -69,7 +69,7 @@ struct s3c_gpio_cfg {#define S3C_GPIO_OUTPUT (S3C_GPIO_SPECIAL(1))#define S3C_GPIO_SFN (x) (S3C_GPIO_SPECIAL(x)) -#define s3c_gpio_is_cfg_special (_cfg) \ +#define samsung_gpio_is_cfg_special (_cfg) \ (((_cfg) & S3C_GPIO_SPECIAL_MARK) == S3C_GPIO_SPECIAL_MARK)/**
@@ -128,9 +128,9 @@ extern int s3c_gpio_cfgpin_range(unsigned int start, unsigned int nr,* up or down settings, and it may be dependent on the chip that is being * used to whether the particular mode is available. */ -#define S3C_GPIO_PULL_NONE ((__force s3c_gpio_pull_t)0x00) -#define S3C_GPIO_PULL_DOWN ((__force s3c_gpio_pull_t)0x01) -#define S3C_GPIO_PULL_UP ((__force s3c_gpio_pull_t)0x02) +#define S3C_GPIO_PULL_NONE ((__force samsung_gpio_pull_t)0x00) +#define S3C_GPIO_PULL_DOWN ((__force samsung_gpio_pull_t)0x01) +#define S3C_GPIO_PULL_UP ((__force samsung_gpio_pull_t)0x02)/** * s3c_gpio_setpull() - set the state of a gpio pin pull resistor
@@ -143,7 +143,7 @@ extern int s3c_gpio_cfgpin_range(unsigned int start, unsigned int nr,* * @pull is one of S3C_GPIO_PULL_NONE, S3C_GPIO_PULL_DOWN or S3C_GPIO_PULL_UP. */ -extern int s3c_gpio_setpull (unsigned int pin,s3c_gpio_pull_t pull); +extern int s3c_gpio_setpull (unsigned int pin,samsung_gpio_pull_t pull);/** * s3c_gpio_getpull() - get the pull resistor state of a gpio pin
@@ -151,7 +151,7 @@ extern int s3c_gpio_setpull(unsigned int pin, s3c_gpio_pull_t pull);* * Read the pull resistor value for the specified pin. */ -extern s3c_gpio_pull_t s3c_gpio_getpull (unsigned int pin); +extern samsung_gpio_pull_t s3c_gpio_getpull (unsigned int pin);/* configure `all` aspects of an gpio */
@@ -170,7 +170,7 @@ extern s3c_gpio_pull_t s3c_gpio_getpull(unsigned int pin);* @sa s3c_gpio_cfgpin_range */ extern int s3c_gpio_cfgall_range (unsigned int start,unsigned int nr, -unsigned int cfg,s3c_gpio_pull_t pull); +unsigned int cfg,samsung_gpio_pull_t pull);static inline int s3c_gpio_cfgrange_nopull (unsigned int pin,unsigned int size,unsigned int cfg)
arch/arm/plat-samsung/include/plat/gpio-core.h +25 -72
151 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/gpio-fns.h new file +98 -0
98 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/pm.h +5 -5
@@ -165,20 +165,20 @@ extern void s3c_pm_check_store(void);extern void s3c_pm_configure_extint (void );/** -* s3c_pm_restore_gpios() - restore the state of the gpios after sleep. +* samsung_pm_restore_gpios() - restore the state of the gpios after sleep. * * Restore the state of the GPIO pins after sleep, which may involve ensuring * that we do not glitch the state of the pins from that the bootloader's * resume code has done. */ -extern void s3c_pm_restore_gpios (void ); +extern void samsung_pm_restore_gpios (void );/** -* s3c_pm_save_gpios() - save the state of the GPIOs for restoring after sleep. +* samsung_pm_save_gpios() - save the state of the GPIOs for restoring after sleep. * -* Save the GPIO states for resotration on resume. See s3c_pm_restore_gpios(). +* Save the GPIO states for resotration on resume. See samsung_pm_restore_gpios(). */ -extern void s3c_pm_save_gpios (void ); +extern void samsung_pm_save_gpios (void );extern void s3c_pm_save_core (void );extern void s3c_pm_restore_core (void );
arch/arm/plat-samsung/pm-gpio.c +36 -36
200 lines not on this page · raw message
arch/arm/plat-samsung/pm.c +3 -3
@@ -268,8 +268,8 @@ static int s3c_pm_enter(suspend_state_t state)/* save all necessary core registers not covered by the drivers */ -s3c_pm_save_gpios (); -s3c_pm_saved_gpios (); +samsung_pm_save_gpios (); +samsung_pm_saved_gpios ();s3c_pm_save_uarts ();s3c_pm_save_core ();
@@ -306,7 +306,7 @@ static int s3c_pm_enter(suspend_state_t state)s3c_pm_restore_core ();s3c_pm_restore_uarts (); -s3c_pm_restore_gpios (); +samsung_pm_restore_gpios ();s3c_pm_restored_gpios ();s3c_pm_debug_init ();
Signature · 1 line
1.7.1
PATCH 7/7 ARM: SAMSUNG: Remove useless Samsung GPIO related CONFIGs
In reply to Kukjin Kim--- arch/arm/Kconfig | 3 --- arch/arm/mach-s3c2410/Kconfig | 1 - arch/arm/mach-s3c2416/Kconfig | 1 - arch/arm/mach-s3c2440/Kconfig | 2 -- arch/arm/mach-s3c2443/Kconfig | 1 - arch/arm/plat-s3c24xx/Kconfig | 1 - arch/arm/plat-s5p/Kconfig | 3 --- arch/arm/plat-samsung/Kconfig | 27 --------------------------- 8 files changed, 0 insertions(+), 39 deletions(-)
arch/arm/Kconfig +0 -3
@@ -724,9 +724,6 @@ config ARCH_S3C64XX select SAMSUNG_IRQ_VIC_TIMER select SAMSUNG_IRQ_UART select S3C_GPIO_TRACK - select S3C_GPIO_PULL_UPDOWN - select S3C_GPIO_CFG_S3C24XX - select S3C_GPIO_CFG_S3C64XX select S3C_DEV_NAND select USB_ARCH_HAS_OHCI select SAMSUNG_GPIOLIB_4BIT
arch/arm/mach-s3c2410/Kconfig +0 -1
@@ -6,7 +6,6 @@ config CPU_S3C2410 bool depends on ARCH_S3C2410 select CPU_ARM920T - select S3C_GPIO_PULL_UP select S3C2410_CLOCK select CPU_LLSERIAL_S3C2410 select S3C2410_PM if PM
arch/arm/mach-s3c2416/Kconfig +0 -1
@@ -13,7 +13,6 @@ config CPU_S3C2416 select CPU_ARM926T select S3C2416_DMA if S3C2410_DMA select CPU_LLSERIAL_S3C2440 - select S3C_GPIO_PULL_UPDOWN select SAMSUNG_CLKSRC select S3C2443_CLOCK help
arch/arm/mach-s3c2440/Kconfig +0 -2
@@ -5,7 +5,6 @@ config CPU_S3C2440 bool select CPU_ARM920T - select S3C_GPIO_PULL_UP select S3C2410_CLOCK select S3C2410_PM if PM select S3C2440_DMA if S3C2410_DMA
@@ -17,7 +16,6 @@ config CPU_S3C2440 config CPU_S3C2442 bool select CPU_ARM920T - select S3C_GPIO_PULL_DOWN select S3C2410_CLOCK select S3C2410_PM if PM select CPU_S3C244X
arch/arm/mach-s3c2443/Kconfig +0 -1
@@ -10,7 +10,6 @@ config CPU_S3C2443 select CPU_LLSERIAL_S3C2440 select SAMSUNG_CLKSRC select S3C2443_CLOCK - select S3C_GPIO_PULL_S3C2443 help Support for the S3C2443 SoC from the S3C24XX line
arch/arm/plat-s3c24xx/Kconfig +0 -1
@@ -9,7 +9,6 @@ config PLAT_S3C24XX select NO_IOPORT select ARCH_REQUIRE_GPIOLIB select S3C_DEV_NAND - select S3C_GPIO_CFG_S3C24XX help Base platform code for any Samsung S3C24XX device
arch/arm/plat-s5p/Kconfig +0 -3
@@ -16,9 +16,6 @@ config PLAT_S5P select S3C_GPIO_TRACK select S5P_GPIO_DRVSTR select SAMSUNG_GPIOLIB_4BIT - select S3C_GPIO_CFG_S3C64XX - select S3C_GPIO_PULL_UPDOWN - select S3C_GPIO_CFG_S3C24XX select PLAT_SAMSUNG select SAMSUNG_CLKSRC select SAMSUNG_IRQ_VIC_TIMER
arch/arm/plat-samsung/Kconfig +0 -27
@@ -79,39 +79,12 @@ config SAMSUNG_GPIOLIB_4BIT configuration. GPIOlib shall be compiled only for S3C64XX and S5P series of processors. -config S3C_GPIO_CFG_S3C24XX - bool - help - Internal configuration to enable S3C24XX style GPIO configuration - functions. - config S3C_GPIO_CFG_S3C64XX bool help Internal configuration to enable S3C64XX style GPIO configuration functions. -config S3C_GPIO_PULL_UPDOWN - bool - help - Internal configuration to enable the correct GPIO pull helper - -config S3C_GPIO_PULL_S3C2443 - bool - select S3C_GPIO_PULL_UPDOWN - help - Internal configuration to enable the correct GPIO pull helper for S3C2443-style GPIO - -config S3C_GPIO_PULL_DOWN - bool - help - Internal configuration to enable the correct GPIO pull helper - -config S3C_GPIO_PULL_UP - bool - help - Internal configuration to enable the correct GPIO pull helper - config S5P_GPIO_DRVSTR bool help
Signature · 1 line
1.7.1