mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-21 07:58:50 +07:00

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>
28 lines
613 B
Plaintext
28 lines
613 B
Plaintext
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
|
|
select PINCTRL_SH_PFC
|
|
def_bool y
|
|
|
|
#
|
|
# Placeholder for now, rehome to drivers/pinctrl once the PFC APIs
|
|
# have settled.
|
|
#
|
|
config PINCTRL_SH_PFC
|
|
tristate "SuperH PFC pin controller driver"
|
|
depends on SH_PFC
|
|
select PINCTRL
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
|
|
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.
|