summaryrefslogtreecommitdiff
path: root/drivers/sh/Kconfig
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-06-20 13:17:56 +0400
committerPaul Mundt <lethal@linux-sh.org>2012-06-20 13:17:56 +0400
commitb16b2a262c234d6abd8899d41769278337fff5b5 (patch)
treeec268b1e2a2c2068dea7af6dd755172e4653ff4a /drivers/sh/Kconfig
parentb3c185a7614cd95ea9b68d89a8d1ee4227ee9018 (diff)
downloadlinux-b16b2a262c234d6abd8899d41769278337fff5b5.tar.xz
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/Kconfig')
-rw-r--r--drivers/sh/Kconfig15
1 files changed, 15 insertions, 0 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"
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