pinctrl: Move Intel Baytrail pinctrl driver under intel directory
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 24 Oct 2014 12:16:52 +0000 (15:16 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Oct 2014 09:35:20 +0000 (10:35 +0100)
We are going to have more pinctrl drivers for Intel hardware so separate
all our pin controller drivers to own directory.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
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-baytrail.c [moved from drivers/pinctrl/pinctrl-baytrail.c with 100% similarity]

index c6a66de..d014f22 100644 (file)
@@ -67,18 +67,6 @@ config PINCTRL_AT91
        help
          Say Y here to enable the at91 pinctrl driver
 
-config PINCTRL_BAYTRAIL
-       bool "Intel Baytrail GPIO pin control"
-       depends on GPIOLIB && ACPI && X86
-       select GPIOLIB_IRQCHIP
-       help
-         driver for memory mapped GPIO functionality on Intel Baytrail
-         platforms. Supports 3 banks with 102, 28 and 44 gpios.
-         Most pins are usually muxed to some other functionality by firmware,
-         so only a small amount is available for gpio use.
-
-         Requires ACPI device enumeration code to set up a platform device.
-
 config PINCTRL_BCM2835
        bool
        select PINMUX
@@ -205,6 +193,7 @@ config PINCTRL_PALMAS
 
 source "drivers/pinctrl/berlin/Kconfig"
 source "drivers/pinctrl/freescale/Kconfig"
+source "drivers/pinctrl/intel/Kconfig"
 source "drivers/pinctrl/mvebu/Kconfig"
 source "drivers/pinctrl/nomadik/Kconfig"
 source "drivers/pinctrl/qcom/Kconfig"
index 51f52d3..c030b3d 100644 (file)
@@ -15,7 +15,6 @@ obj-$(CONFIG_PINCTRL_BF54x)   += pinctrl-adi2-bf54x.o
 obj-$(CONFIG_PINCTRL_BF60x)    += pinctrl-adi2-bf60x.o
 obj-$(CONFIG_PINCTRL_AT91)     += pinctrl-at91.o
 obj-$(CONFIG_PINCTRL_BCM2835)  += pinctrl-bcm2835.o
-obj-$(CONFIG_PINCTRL_BAYTRAIL) += pinctrl-baytrail.o
 obj-$(CONFIG_PINCTRL_BCM281XX) += pinctrl-bcm281xx.o
 obj-$(CONFIG_PINCTRL_FALCON)   += pinctrl-falcon.o
 obj-$(CONFIG_PINCTRL_PALMAS)   += pinctrl-palmas.o
@@ -39,6 +38,7 @@ obj-$(CONFIG_PINCTRL_ST)      += pinctrl-st.o
 
 obj-$(CONFIG_ARCH_BERLIN)      += berlin/
 obj-y                          += freescale/
+obj-$(CONFIG_X86)              += intel/
 obj-$(CONFIG_PLAT_ORION)        += mvebu/
 obj-y                          += nomadik/
 obj-$(CONFIG_ARCH_QCOM)                += qcom/
diff --git a/drivers/pinctrl/intel/Kconfig b/drivers/pinctrl/intel/Kconfig
new file mode 100644 (file)
index 0000000..957c903
--- /dev/null
@@ -0,0 +1,15 @@
+#
+# Intel pin control drivers
+#
+
+config PINCTRL_BAYTRAIL
+       bool "Intel Baytrail GPIO pin control"
+       depends on GPIOLIB && ACPI
+       select GPIOLIB_IRQCHIP
+       help
+         driver for memory mapped GPIO functionality on Intel Baytrail
+         platforms. Supports 3 banks with 102, 28 and 44 gpios.
+         Most pins are usually muxed to some other functionality by firmware,
+         so only a small amount is available for gpio use.
+
+         Requires ACPI device enumeration code to set up a platform device.
diff --git a/drivers/pinctrl/intel/Makefile b/drivers/pinctrl/intel/Makefile
new file mode 100644 (file)
index 0000000..d049b76
--- /dev/null
@@ -0,0 +1,3 @@
+# Intel pin control drivers
+
+obj-$(CONFIG_PINCTRL_BAYTRAIL)         += pinctrl-baytrail.o