mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 19:01:37 +00:00
ce385aa24a
This change prepare the introduction of new meson SoC. This new SoC will share the same gpio/pinconf registers but the pinmux part will be different. While the format of the data associated with each pinmux group will change, the way to handle pinmuxing will be similar. To deal with this new situation, the meson_pmx_struture is kept but the data associated to it is now generic. This allows to reuse the basic functions which would otherwise be copy/pasted in each pinmux driver (such as getting the name a count of groups and functions) Only the functions actually using this specific data is taken out of the common code and is handling the SoC pinmuxing Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
42 lines
730 B
Plaintext
42 lines
730 B
Plaintext
menuconfig PINCTRL_MESON
|
|
bool "Amlogic SoC pinctrl drivers"
|
|
depends on ARCH_MESON
|
|
depends on OF
|
|
select PINMUX
|
|
select PINCONF
|
|
select GENERIC_PINCONF
|
|
select GPIOLIB
|
|
select OF_GPIO
|
|
select REGMAP_MMIO
|
|
|
|
if PINCTRL_MESON
|
|
|
|
config PINCTRL_MESON8
|
|
bool "Meson 8 SoC pinctrl driver"
|
|
depends on ARM
|
|
select PINCTRL_MESON8_PMX
|
|
default y
|
|
|
|
config PINCTRL_MESON8B
|
|
bool "Meson 8b SoC pinctrl driver"
|
|
depends on ARM
|
|
select PINCTRL_MESON8_PMX
|
|
default y
|
|
|
|
config PINCTRL_MESON_GXBB
|
|
bool "Meson gxbb SoC pinctrl driver"
|
|
depends on ARM64
|
|
select PINCTRL_MESON8_PMX
|
|
default y
|
|
|
|
config PINCTRL_MESON_GXL
|
|
bool "Meson gxl SoC pinctrl driver"
|
|
depends on ARM64
|
|
select PINCTRL_MESON8_PMX
|
|
default y
|
|
|
|
config PINCTRL_MESON8_PMX
|
|
bool
|
|
|
|
endif
|