From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 15:59:41 +0800 Subject: [PATCH v6 080/102] x86: Add a generic Intel pinctrl driver In-Reply-To: <20191206213936.v6.80.I869e92b54b07d78499801091b2fb32cec7988856@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.80.I869e92b54b07d78499801091b2fb32cec7988856@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:52 PM Simon Glass 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 > --- > > 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