aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh/pfc/Kconfig
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-07-09 23:08:14 -0400
committerPaul Mundt <lethal@linux-sh.org>2012-07-09 23:08:14 -0400
commitca5481c68e9fbcea62bb3c78ae6cccf99ca8fb73 (patch)
tree977e9adb0bc0b8588b111c851e7d9230d72cd3b3 /drivers/sh/pfc/Kconfig
parent72c7afa10f272710028f244da65d35e571144085 (diff)
sh: pfc: Rudimentary pinctrl-backed GPIO support.
This begins the migration of the PFC core to the pinctrl subsystem. Initial support is very basic, with the bulk of the implementation simply being nopped out in such a way to allow registration with the pinctrl core to succeed. The gpio chip driver is stripped down considerably now relying purely on pinctrl API calls to manage the bulk of its operations. This provides a basis for further PFC refactoring, including decoupling pin functions from the GPIO API, establishing pin groups, and so forth. These will all be dealt with incrementally so as to introduce as few growing and migratory pains to tree-wide PFC pinmux users today. When the interfaces have been well established and in-tree users have been migrated off of the legacy interfaces it will be possible to strip down the core considerably, leading to eventual drivers/pinctrl rehoming. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh/pfc/Kconfig')
-rw-r--r--drivers/sh/pfc/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/sh/pfc/Kconfig b/drivers/sh/pfc/Kconfig
index 95b04f4edb88..b743aaa543f8 100644
--- a/drivers/sh/pfc/Kconfig
+++ b/drivers/sh/pfc/Kconfig
@@ -4,8 +4,21 @@ config SH_PFC
4 # XXX move off the gpio dependency 4 # XXX move off the gpio dependency
5 depends on GENERIC_GPIO 5 depends on GENERIC_GPIO
6 select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB 6 select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB
7 select PINCTRL_SH_PFC
7 def_bool y 8 def_bool y
8 9
10#
11# Placeholder for now, rehome to drivers/pinctrl once the PFC APIs
12# have settled.
13#
14config PINCTRL_SH_PFC
15 tristate "SuperH PFC pin controller driver"
16 depends on SH_PFC
17 select PINCTRL
18 select PINMUX
19 select PINCONF
20 select GENERIC_PINCONF
21
9config GPIO_SH_PFC 22config GPIO_SH_PFC
10 tristate "SuperH PFC GPIO support" 23 tristate "SuperH PFC GPIO support"
11 depends on SH_PFC && GPIOLIB 24 depends on SH_PFC && GPIOLIB