
On Sun, Dec 8, 2019 at 3:59 PM Bin Meng bmeng.cn@gmail.com wrote:
On Sat, Dec 7, 2019 at 12:52 PM Simon Glass sjg@chromium.org wrote:
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 sjg@chromium.org
Changes in v6:
- Add a comment to intel_pinctrl_ops
- Drop use of GPIO_NUM_PAD_CFG_REGS
- Move Intel Kconfig pinctrl options into this patch
Changes in v5:
- Add function to obtain ACPI gpio number
Changes in v4:
- Add a binding file
- Split out GPIO code from the pinctrl driver
- Switch over to use pinctrl for pad init/config
Changes in v3: None Changes in v2: None
arch/x86/include/asm/intel_pinctrl.h | 306 +++++++++ arch/x86/include/asm/intel_pinctrl_defs.h | 373 ++++++++++ .../pinctrl/intel,apl-pinctrl.txt | 39 ++ drivers/pinctrl/Kconfig | 9 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/intel/Kconfig | 16 + drivers/pinctrl/intel/Makefile | 5 + drivers/pinctrl/intel/pinctrl.c | 636 ++++++++++++++++++ 8 files changed, 1385 insertions(+) create mode 100644 arch/x86/include/asm/intel_pinctrl.h create mode 100644 arch/x86/include/asm/intel_pinctrl_defs.h create mode 100644 doc/device-tree-bindings/pinctrl/intel,apl-pinctrl.txt create mode 100644 drivers/pinctrl/intel/Kconfig create mode 100644 drivers/pinctrl/intel/Makefile create mode 100644 drivers/pinctrl/intel/pinctrl.c
Reviewed-by: Bin Meng bmeng.cn@gmail.com
applied to u-boot-x86/next, thanks!