diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-07-09 22:49:30 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-07-09 22:49:30 -0400 |
commit | afae021abeadc58aec5074f26a1d62912773edf7 (patch) | |
tree | 87b4bf236101a53051893b14795a79e08ad64916 | |
parent | 06d5631f56460917af3d9417ef63811cf0cad9ce (diff) |
sh: pfc: Shuffle PFC support core.
This follows the intc/clk changes and shuffles the PFC support code under
its own directory. This will facilitate better code sharing, and allow us
to trim down the exported interface by quite a margin.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | drivers/sh/Kconfig | 16 | ||||
-rw-r--r-- | drivers/sh/Makefile | 4 | ||||
-rw-r--r-- | drivers/sh/pfc/Kconfig | 14 | ||||
-rw-r--r-- | drivers/sh/pfc/Makefile | 2 | ||||
-rw-r--r-- | drivers/sh/pfc/core.c (renamed from drivers/sh/pfc.c) | 0 | ||||
-rw-r--r-- | drivers/sh/pfc/gpio.c (renamed from drivers/sh/pfc-gpio.c) | 0 | ||||
-rw-r--r-- | include/linux/sh_pfc.h | 4 |
7 files changed, 21 insertions, 19 deletions
diff --git a/drivers/sh/Kconfig b/drivers/sh/Kconfig index d7dbfee1bc70..d860ef743568 100644 --- a/drivers/sh/Kconfig +++ b/drivers/sh/Kconfig | |||
@@ -1,20 +1,6 @@ | |||
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 | 4 | source "drivers/sh/pfc/Kconfig" | |
5 | comment "Pin function controller options" | ||
6 | |||
7 | config SH_PFC | ||
8 | # XXX move off the gpio dependency | ||
9 | depends on GENERIC_GPIO | ||
10 | select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB | ||
11 | def_bool y | ||
12 | |||
13 | config GPIO_SH_PFC | ||
14 | tristate "SuperH PFC GPIO support" | ||
15 | depends on SH_PFC && GPIOLIB | ||
16 | help | ||
17 | This enables support for GPIOs within the SoC's pin function | ||
18 | controller. | ||
19 | 5 | ||
20 | endmenu | 6 | endmenu |
diff --git a/drivers/sh/Makefile b/drivers/sh/Makefile index f5d93e8de090..e57895b1a425 100644 --- a/drivers/sh/Makefile +++ b/drivers/sh/Makefile | |||
@@ -5,7 +5,7 @@ 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/ | ||
8 | obj-$(CONFIG_SUPERHYWAY) += superhyway/ | 9 | obj-$(CONFIG_SUPERHYWAY) += superhyway/ |
9 | obj-$(CONFIG_SH_PFC) += pfc.o | 10 | |
10 | obj-$(CONFIG_GPIO_SH_PFC) += pfc-gpio.o | ||
11 | obj-y += pm_runtime.o | 11 | obj-y += pm_runtime.o |
diff --git a/drivers/sh/pfc/Kconfig b/drivers/sh/pfc/Kconfig new file mode 100644 index 000000000000..95b04f4edb88 --- /dev/null +++ b/drivers/sh/pfc/Kconfig | |||
@@ -0,0 +1,14 @@ | |||
1 | comment "Pin function controller options" | ||
2 | |||
3 | config SH_PFC | ||
4 | # XXX move off the gpio dependency | ||
5 | depends on GENERIC_GPIO | ||
6 | select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB | ||
7 | def_bool y | ||
8 | |||
9 | config GPIO_SH_PFC | ||
10 | tristate "SuperH PFC GPIO support" | ||
11 | depends on SH_PFC && GPIOLIB | ||
12 | help | ||
13 | This enables support for GPIOs within the SoC's pin function | ||
14 | controller. | ||
diff --git a/drivers/sh/pfc/Makefile b/drivers/sh/pfc/Makefile new file mode 100644 index 000000000000..d81707744b27 --- /dev/null +++ b/drivers/sh/pfc/Makefile | |||
@@ -0,0 +1,2 @@ | |||
1 | obj-y += core.o | ||
2 | obj-$(CONFIG_GPIO_SH_PFC) += gpio.o | ||
diff --git a/drivers/sh/pfc.c b/drivers/sh/pfc/core.c index ce4579ebd602..ce4579ebd602 100644 --- a/drivers/sh/pfc.c +++ b/drivers/sh/pfc/core.c | |||
diff --git a/drivers/sh/pfc-gpio.c b/drivers/sh/pfc/gpio.c index d74e5a96024b..d74e5a96024b 100644 --- a/drivers/sh/pfc-gpio.c +++ b/drivers/sh/pfc/gpio.c | |||
diff --git a/include/linux/sh_pfc.h b/include/linux/sh_pfc.h index ed1d8234f6ae..f522550fc32b 100644 --- a/include/linux/sh_pfc.h +++ b/include/linux/sh_pfc.h | |||
@@ -127,10 +127,10 @@ struct sh_pfc { | |||
127 | /* XXX compat for now */ | 127 | /* XXX compat for now */ |
128 | #define pinmux_info sh_pfc | 128 | #define pinmux_info sh_pfc |
129 | 129 | ||
130 | /* drivers/sh/pfc-gpio.c */ | 130 | /* drivers/sh/pfc/gpio.c */ |
131 | int sh_pfc_register_gpiochip(struct sh_pfc *pfc); | 131 | int sh_pfc_register_gpiochip(struct sh_pfc *pfc); |
132 | 132 | ||
133 | /* drivers/sh/pfc.c */ | 133 | /* drivers/sh/pfc/core.c */ |
134 | int register_sh_pfc(struct sh_pfc *pfc); | 134 | int register_sh_pfc(struct sh_pfc *pfc); |
135 | 135 | ||
136 | int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos); | 136 | int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos); |