From 74749f1e84dfec4ba521d741db461803d465948c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 6 Dec 2019 21:42:53 -0700 Subject: x86: Add a generic Intel pinctrl driver Recent Intel SoCs share a pinctrl mechanism with many common elements. Add an implementation of this core functionality, allowing SoC-specific drivers to avoid adding common code. As well as a pinctrl driver this provides a GPIO driver based on the same code. Once other SoCs use this driver we may consider moving more properties to the device tree (e.g. the community info and pad definitions). Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- drivers/pinctrl/intel/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 drivers/pinctrl/intel/Kconfig (limited to 'drivers/pinctrl/intel/Kconfig') diff --git a/drivers/pinctrl/intel/Kconfig b/drivers/pinctrl/intel/Kconfig new file mode 100644 index 0000000000..c01c6244d9 --- /dev/null +++ b/drivers/pinctrl/intel/Kconfig @@ -0,0 +1,16 @@ +# +# Intel PINCTRL drivers +# + +if PINCTRL_INTEL + +config INTEL_PINCTRL_DUAL_ROUTE_SUPPORT + def_bool y + +config INTEL_PINCTRL_PADCFG_PADTOL + def_bool n + +config INTEL_PINCTRL_IOSTANDBY + def_bool y + +endif -- cgit From 0a6f333e8d1d05c0d8a0e67439d4ebbab885834d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 8 Dec 2019 17:32:08 -0700 Subject: x86: apl: Add pinctrl driver Add a driver for the Apollo Lake pinctrl. This mostly makes use of the common Intel pinctrl support. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- drivers/pinctrl/intel/Kconfig | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'drivers/pinctrl/intel/Kconfig') diff --git a/drivers/pinctrl/intel/Kconfig b/drivers/pinctrl/intel/Kconfig index c01c6244d9..e62a2e0349 100644 --- a/drivers/pinctrl/intel/Kconfig +++ b/drivers/pinctrl/intel/Kconfig @@ -5,12 +5,22 @@ if PINCTRL_INTEL config INTEL_PINCTRL_DUAL_ROUTE_SUPPORT - def_bool y + bool + default y config INTEL_PINCTRL_PADCFG_PADTOL - def_bool n + bool n config INTEL_PINCTRL_IOSTANDBY - def_bool y + bool + default y + +config PINCTRL_INTEL_APL + bool "Support Intel Apollo Lake (APL)" + help + Add support for Intel Apollo Lake pin-control and pin-mux settings. + These are mostly read from the device tree, with the early-pads + property in the host bridge and the pads property in the fsp-s + subnode of the host bridge. endif -- cgit