Merrifield and Moorefield pinctrl driver implementations are similar in terms of how they access the hardware. We can consolidate their pinctrl functionalities into a common library driver. This patch set introduces: 1. Intel Tangier driver that supports the common pinctrl functionalities for Merrifield and Moorefield platforms. 2. Intel Tangier adaptation for Merrifield pinctrl driver. 3. Intel Tangier adaptation for Moorefield pinctrl driver. Tested on Intel Edison platform. No deviation observed in the contents of below entries before and after this patchset. - /proc/interrupts - /sys/kernel/debug/gpio - /sys/kernel/debug/pinctrl/*/pins Raag Jadav (3): pinctrl: tangier: Introduce Intel Tangier driver pinctrl: merrifield: Adapt to Intel Tangier driver pinctrl: moorefield: Adapt to Intel Tangier driver drivers/pinctrl/intel/Kconfig | 23 +- drivers/pinctrl/intel/Kconfig.tng | 33 + drivers/pinctrl/intel/Makefile | 1 + drivers/pinctrl/intel/pinctrl-merrifield.c | 677 +-------------------- drivers/pinctrl/intel/pinctrl-moorefield.c | 640 +------------------ drivers/pinctrl/intel/pinctrl-tangier.c | 589 ++++++++++++++++++ drivers/pinctrl/intel/pinctrl-tangier.h | 92 +++ 7 files changed, 778 insertions(+), 1277 deletions(-) create mode 100644 drivers/pinctrl/intel/Kconfig.tng create mode 100644 drivers/pinctrl/intel/pinctrl-tangier.c create mode 100644 drivers/pinctrl/intel/pinctrl-tangier.h -- 2.17.1