diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2012-12-15 17:51:19 -0500 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-01-24 19:24:25 -0500 |
commit | 6e54d8d252ed09ae148af6565971974af9a96e10 (patch) | |
tree | ac4e0c344ec0e371decf95663d75f7918bd33bbc | |
parent | 56dc04af3b5e54be330e18630301d2bda5d365eb (diff) |
sh-pfc: Move driver from drivers/sh/ to drivers/pinctrl/
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r-- | drivers/pinctrl/Kconfig | 2 | ||||
-rw-r--r-- | drivers/pinctrl/Makefile | 2 | ||||
-rw-r--r-- | drivers/pinctrl/sh-pfc/Kconfig (renamed from drivers/sh/pfc/Kconfig) | 16 | ||||
-rw-r--r-- | drivers/pinctrl/sh-pfc/Makefile (renamed from drivers/sh/pfc/Makefile) | 2 | ||||
-rw-r--r-- | drivers/pinctrl/sh-pfc/core.c (renamed from drivers/sh/pfc/core.c) | 0 | ||||
-rw-r--r-- | drivers/pinctrl/sh-pfc/core.h (renamed from drivers/sh/pfc/core.h) | 0 | ||||
-rw-r--r-- | drivers/pinctrl/sh-pfc/gpio.c (renamed from drivers/sh/pfc/gpio.c) | 0 | ||||
-rw-r--r-- | drivers/pinctrl/sh-pfc/pinctrl.c (renamed from drivers/sh/pfc/pinctrl.c) | 0 | ||||
-rw-r--r-- | drivers/sh/Kconfig | 1 | ||||
-rw-r--r-- | drivers/sh/Makefile | 1 |
10 files changed, 15 insertions, 9 deletions
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index c31aeb01bb00..a9d390421b4f 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig | |||
@@ -196,7 +196,7 @@ config PINCTRL_EXYNOS5440 | |||
196 | select PINCONF | 196 | select PINCONF |
197 | 197 | ||
198 | source "drivers/pinctrl/mvebu/Kconfig" | 198 | source "drivers/pinctrl/mvebu/Kconfig" |
199 | 199 | source "drivers/pinctrl/sh-pfc/Kconfig" | |
200 | source "drivers/pinctrl/spear/Kconfig" | 200 | source "drivers/pinctrl/spear/Kconfig" |
201 | 201 | ||
202 | config PINCTRL_XWAY | 202 | config PINCTRL_XWAY |
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile index fc4606f27dc7..04e2c6dafbaa 100644 --- a/drivers/pinctrl/Makefile +++ b/drivers/pinctrl/Makefile | |||
@@ -42,4 +42,6 @@ obj-$(CONFIG_PINCTRL_XWAY) += pinctrl-xway.o | |||
42 | obj-$(CONFIG_PINCTRL_LANTIQ) += pinctrl-lantiq.o | 42 | obj-$(CONFIG_PINCTRL_LANTIQ) += pinctrl-lantiq.o |
43 | 43 | ||
44 | obj-$(CONFIG_PLAT_ORION) += mvebu/ | 44 | obj-$(CONFIG_PLAT_ORION) += mvebu/ |
45 | obj-$(CONFIG_ARCH_SHMOBILE) += sh-pfc/ | ||
46 | obj-$(CONFIG_SUPERH) += sh-pfc/ | ||
45 | obj-$(CONFIG_PLAT_SPEAR) += spear/ | 47 | obj-$(CONFIG_PLAT_SPEAR) += spear/ |
diff --git a/drivers/sh/pfc/Kconfig b/drivers/pinctrl/sh-pfc/Kconfig index eaeabc58bb06..ae69dbe18bfd 100644 --- a/drivers/sh/pfc/Kconfig +++ b/drivers/pinctrl/sh-pfc/Kconfig | |||
@@ -1,18 +1,24 @@ | |||
1 | comment "Pin function controller options" | 1 | # |
2 | # Renesas SH and SH Mobile PINCTRL drivers | ||
3 | # | ||
2 | 4 | ||
3 | config SH_PFC | 5 | if ARCH_SHMOBILE || SUPERH |
6 | |||
7 | config PINCTRL_SH_PFC | ||
4 | # XXX move off the gpio dependency | 8 | # XXX move off the gpio dependency |
5 | depends on GENERIC_GPIO | 9 | depends on GENERIC_GPIO |
6 | select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB | 10 | select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB |
7 | select PINCTRL_SH_PFC | ||
8 | select PINCTRL | ||
9 | select PINMUX | 11 | select PINMUX |
10 | select PINCONF | 12 | select PINCONF |
11 | def_bool y | 13 | def_bool y |
14 | help | ||
15 | This enables pin control drivers for SH and SH Mobile platforms | ||
12 | 16 | ||
13 | config GPIO_SH_PFC | 17 | config GPIO_SH_PFC |
14 | bool "SuperH PFC GPIO support" | 18 | bool "SuperH PFC GPIO support" |
15 | depends on SH_PFC && GPIOLIB | 19 | depends on PINCTRL_SH_PFC && GPIOLIB |
16 | help | 20 | help |
17 | This enables support for GPIOs within the SoC's pin function | 21 | This enables support for GPIOs within the SoC's pin function |
18 | controller. | 22 | controller. |
23 | |||
24 | endif | ||
diff --git a/drivers/sh/pfc/Makefile b/drivers/pinctrl/sh-pfc/Makefile index 6315cf35b34d..6ba6fb26cde9 100644 --- a/drivers/sh/pfc/Makefile +++ b/drivers/pinctrl/sh-pfc/Makefile | |||
@@ -2,4 +2,4 @@ sh-pfc-objs = core.o pinctrl.o | |||
2 | ifeq ($(CONFIG_GPIO_SH_PFC),y) | 2 | ifeq ($(CONFIG_GPIO_SH_PFC),y) |
3 | sh-pfc-objs += gpio.o | 3 | sh-pfc-objs += gpio.o |
4 | endif | 4 | endif |
5 | obj-y += sh-pfc.o | 5 | obj-$(CONFIG_PINCTRL_SH_PFC) += sh-pfc.o |
diff --git a/drivers/sh/pfc/core.c b/drivers/pinctrl/sh-pfc/core.c index 8e7818bccb29..8e7818bccb29 100644 --- a/drivers/sh/pfc/core.c +++ b/drivers/pinctrl/sh-pfc/core.c | |||
diff --git a/drivers/sh/pfc/core.h b/drivers/pinctrl/sh-pfc/core.h index 87ae5fd2a201..87ae5fd2a201 100644 --- a/drivers/sh/pfc/core.h +++ b/drivers/pinctrl/sh-pfc/core.h | |||
diff --git a/drivers/sh/pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c index a0454f321710..a0454f321710 100644 --- a/drivers/sh/pfc/gpio.c +++ b/drivers/pinctrl/sh-pfc/gpio.c | |||
diff --git a/drivers/sh/pfc/pinctrl.c b/drivers/pinctrl/sh-pfc/pinctrl.c index 221bde03913a..221bde03913a 100644 --- a/drivers/sh/pfc/pinctrl.c +++ b/drivers/pinctrl/sh-pfc/pinctrl.c | |||
diff --git a/drivers/sh/Kconfig b/drivers/sh/Kconfig index d860ef743568..f168a6159961 100644 --- a/drivers/sh/Kconfig +++ b/drivers/sh/Kconfig | |||
@@ -1,6 +1,5 @@ | |||
1 | menu "SuperH / SH-Mobile Driver Options" | 1 | menu "SuperH / SH-Mobile Driver Options" |
2 | 2 | ||
3 | source "drivers/sh/intc/Kconfig" | 3 | source "drivers/sh/intc/Kconfig" |
4 | source "drivers/sh/pfc/Kconfig" | ||
5 | 4 | ||
6 | endmenu | 5 | endmenu |
diff --git a/drivers/sh/Makefile b/drivers/sh/Makefile index e57895b1a425..fc67f564f02c 100644 --- a/drivers/sh/Makefile +++ b/drivers/sh/Makefile | |||
@@ -5,7 +5,6 @@ obj-y := intc/ | |||
5 | 5 | ||
6 | obj-$(CONFIG_HAVE_CLK) += clk/ | 6 | obj-$(CONFIG_HAVE_CLK) += clk/ |
7 | obj-$(CONFIG_MAPLE) += maple/ | 7 | obj-$(CONFIG_MAPLE) += maple/ |
8 | obj-$(CONFIG_SH_PFC) += pfc/ | ||
9 | obj-$(CONFIG_SUPERHYWAY) += superhyway/ | 8 | obj-$(CONFIG_SUPERHYWAY) += superhyway/ |
10 | 9 | ||
11 | obj-y += pm_runtime.o | 10 | obj-y += pm_runtime.o |