mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Implement pin multiplexing (and pin configuration where applicable) for the AST2700 SoC1 SCU pinctrl block using static SoC data tables. Unlike legacy ASPEED pin controllers, the SoC1 pin function control fields are highly regular, which makes it practical to describe the packed-field register layout directly in driver data rather than reuse the existing Aspeed pinctrl macro infrastructure. The driver uses the generic pinctrl, pinmux and pinconf frameworks. The controller registers are accessed via regmap from the parent syscon, allowing shared ownership of the SCU register block. Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config PINCTRL_ASPEED
|
|
bool
|
|
depends on (ARCH_ASPEED || COMPILE_TEST) && OF
|
|
select MFD_SYSCON
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
select REGMAP_MMIO
|
|
|
|
config PINCTRL_ASPEED_G4
|
|
bool "Aspeed G4 SoC pin control"
|
|
depends on (MACH_ASPEED_G4 || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for Aspeed's 4th
|
|
generation SoCs. GPIO is provided by a separate GPIO driver.
|
|
|
|
config PINCTRL_ASPEED_G5
|
|
bool "Aspeed G5 SoC pin control"
|
|
depends on (MACH_ASPEED_G5 || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for Aspeed's 5th
|
|
generation SoCs. GPIO is provided by a separate GPIO driver.
|
|
|
|
config PINCTRL_ASPEED_G6
|
|
bool "Aspeed G6 SoC pin control"
|
|
depends on (MACH_ASPEED_G6 || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for Aspeed's 6th
|
|
generation SoCs. GPIO is provided by a separate GPIO driver.
|
|
|
|
config PINCTRL_ASPEED_G7_SOC0
|
|
bool "Aspeed G7 SoC pin control"
|
|
depends on (ARCH_ASPEED || COMPILE_TEST) && OF
|
|
select PINCTRL_ASPEED
|
|
help
|
|
Say Y here to enable pin controller support for the SoC0 instance
|
|
of Aspeed's 7th generation SoCs. GPIO is provided by a separate
|
|
GPIO driver.
|
|
|
|
config PINCTRL_ASPEED_G7_SOC1
|
|
bool "Aspeed G7 SoC1 pin control"
|
|
depends on (ARCH_ASPEED || COMPILE_TEST) && OF
|
|
select MFD_SYSCON
|
|
select PINMUX
|
|
select GENERIC_PINCTRL_GROUPS
|
|
select GENERIC_PINMUX_FUNCTIONS
|
|
select GENERIC_PINCONF
|
|
select REGMAP_MMIO
|
|
help
|
|
Say Y here to enable pin controller support for the SoC1 instance
|
|
of Aspeed's 7th generation SoCs. GPIO is provided by a separate
|
|
GPIO driver.
|