summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f168a615996..d7dbfee1bc7 100644
--- a/drivers/sh/Kconfig
+++ b/drivers/sh/Kconfig
@@ -2,4 +2,19 @@ menu "SuperH / SH-Mobile Driver Options"
source "drivers/sh/intc/Kconfig"
+comment "Pin function controller options"
+
+config SH_PFC
+ # XXX move off the gpio dependency
+ depends on GENERIC_GPIO
+ select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB
+ def_bool y
+
+config GPIO_SH_PFC
+ tristate "SuperH PFC GPIO support"
+ depends on SH_PFC && GPIOLIB
+ help
+ This enables support for GPIOs within the SoC's pin function
+ controller.
+
endmenu
diff --git a/drivers/sh/Makefile b/drivers/sh/Makefile
index be5b2934f06..f5d93e8de09 100644
--- a/drivers/sh/Makefile
+++ b/drivers/sh/Makefile
@@ -6,5 +6,6 @@ obj-y := intc/
obj-$(CONFIG_HAVE_CLK) += clk/
obj-$(CONFIG_MAPLE) += maple/
obj-$(CONFIG_SUPERHYWAY) += superhyway/
-obj-$(CONFIG_GENERIC_GPIO) += pfc.o pfc-gpio.o
+obj-$(CONFIG_SH_PFC) += pfc.o
+obj-$(CONFIG_GPIO_SH_PFC) += pfc-gpio.o
obj-y += pm_runtime.o