x86: Add a generic Intel pinctrl driver
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:53 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:25 +0000 (11:44 +0800)
commit74749f1e84dfec4ba521d741db461803d465948c
treee71a8c20cf6f4381598b193611c382264f23beb2
parentb84d4d0932ddbd80416368f5ccdadee34f74b968
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 <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/intel_pinctrl.h [new file with mode: 0644]
arch/x86/include/asm/intel_pinctrl_defs.h [new file with mode: 0644]
doc/device-tree-bindings/pinctrl/intel,apl-pinctrl.txt [new file with mode: 0644]
drivers/pinctrl/Kconfig
drivers/pinctrl/Makefile
drivers/pinctrl/intel/Kconfig [new file with mode: 0644]
drivers/pinctrl/intel/Makefile [new file with mode: 0644]
drivers/pinctrl/intel/pinctrl.c [new file with mode: 0644]