aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-06-20 05:17:56 -0400
committerPaul Mundt <lethal@linux-sh.org>2012-06-20 05:17:56 -0400
commitb16b2a262c234d6abd8899d41769278337fff5b5 (patch)
treeec268b1e2a2c2068dea7af6dd755172e4653ff4a /drivers/sh
parentb3c185a7614cd95ea9b68d89a8d1ee4227ee9018 (diff)
sh: pfc: Make gpio chip support optional where possible.
This implements some Kconfig knobs for ensuring that the PFC gpio chip can be disabled or built as a module in the cases where it's optional, or forcibly enabled in cases where it's not. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/Kconfig15
-rw-r--r--drivers/sh/Makefile3
2 files changed, 17 insertions, 1 deletions
diff --git a/drivers/sh/Kconfig b/drivers/sh/Kconfig
index f168a6159961..d7dbfee1bc70 100644
--- a/drivers/sh/Kconfig
+++ b/drivers/sh/Kconfig
@@ -2,4 +2,19 @@ menu "SuperH / SH-Mobile Driver Options"
2 2
3source "drivers/sh/intc/Kconfig" 3source "drivers/sh/intc/Kconfig"
4 4
5comment "Pin function controller options"
6
7config 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
13config 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
5endmenu 20endmenu
diff --git a/drivers/sh/Makefile b/drivers/sh/Makefile
index be5b2934f067..f5d93e8de090 100644
--- a/drivers/sh/Makefile
+++ b/drivers/sh/Makefile
@@ -6,5 +6,6 @@ obj-y := intc/
6obj-$(CONFIG_HAVE_CLK) += clk/ 6obj-$(CONFIG_HAVE_CLK) += clk/
7obj-$(CONFIG_MAPLE) += maple/ 7obj-$(CONFIG_MAPLE) += maple/
8obj-$(CONFIG_SUPERHYWAY) += superhyway/ 8obj-$(CONFIG_SUPERHYWAY) += superhyway/
9obj-$(CONFIG_GENERIC_GPIO) += pfc.o pfc-gpio.o 9obj-$(CONFIG_SH_PFC) += pfc.o
10obj-$(CONFIG_GPIO_SH_PFC) += pfc-gpio.o
10obj-y += pm_runtime.o 11obj-y += pm_runtime.o