diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2013-11-21 10:34:36 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2013-12-25 13:32:10 -0500 |
commit | ee89cf63a1274a597fc2616d575251f88b3072b6 (patch) | |
tree | 88ee2e3c0a74f7583e0319255cc48afa01520fe3 /drivers/gpio | |
parent | c21d500bdcf1cc0e8b7fd293195270cfa88bf963 (diff) |
gpio: introduce GPIO_DAVINCI kconfig option
The compatible to Davinci GPIO HW block is used by other TI SoCs, like
Keystone, where GPIO support is declared as optional.
Hence, introduce GPIO_DAVINCI Kconfig option which will allow to enable
Davinci GPIO driver for Keystone SoCs when needed. At same time, kept
Davinci GPIO driver enabled for Davinci SoCs by default.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/Kconfig | 7 | ||||
-rw-r--r-- | drivers/gpio/Makefile | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 0f0444475bf0..7c75f5a442b0 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -115,6 +115,13 @@ config GPIO_CLPS711X | |||
115 | help | 115 | help |
116 | Say yes here to support GPIO on CLPS711X SoCs. | 116 | Say yes here to support GPIO on CLPS711X SoCs. |
117 | 117 | ||
118 | config GPIO_DAVINCI | ||
119 | bool "TI Davinci/Keystone GPIO support" | ||
120 | default y if ARCH_DAVINCI | ||
121 | depends on ARM && (ARCH_DAVINCI || ARCH_KEYSTONE) | ||
122 | help | ||
123 | Say yes here to enable GPIO support for TI Davinci/Keystone SoCs. | ||
124 | |||
118 | config GPIO_GENERIC_PLATFORM | 125 | config GPIO_GENERIC_PLATFORM |
119 | tristate "Generic memory-mapped GPIO controller support (MMIO platform device)" | 126 | tristate "Generic memory-mapped GPIO controller support (MMIO platform device)" |
120 | select GPIO_GENERIC | 127 | select GPIO_GENERIC |
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 7971e36b8b12..28a0ffc12c87 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile | |||
@@ -22,7 +22,7 @@ obj-$(CONFIG_GPIO_CLPS711X) += gpio-clps711x.o | |||
22 | obj-$(CONFIG_GPIO_CS5535) += gpio-cs5535.o | 22 | obj-$(CONFIG_GPIO_CS5535) += gpio-cs5535.o |
23 | obj-$(CONFIG_GPIO_DA9052) += gpio-da9052.o | 23 | obj-$(CONFIG_GPIO_DA9052) += gpio-da9052.o |
24 | obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o | 24 | obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o |
25 | obj-$(CONFIG_ARCH_DAVINCI) += gpio-davinci.o | 25 | obj-$(CONFIG_GPIO_DAVINCI) += gpio-davinci.o |
26 | obj-$(CONFIG_GPIO_EM) += gpio-em.o | 26 | obj-$(CONFIG_GPIO_EM) += gpio-em.o |
27 | obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o | 27 | obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o |
28 | obj-$(CONFIG_GPIO_F7188X) += gpio-f7188x.o | 28 | obj-$(CONFIG_GPIO_F7188X) += gpio-f7188x.o |