diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2014-04-06 10:58:15 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-28 15:35:08 -0400 |
commit | cd0a3748f3137c282e3a037b295b47f597e73230 (patch) | |
tree | 9c50bc53e81dbbe7e72973fc32e3af344f7a2323 /drivers/gpio | |
parent | 6ef7f385610a235c7041206da0f92f760b5d0e8d (diff) |
gpio: omap: add a GPIO_OMAP option instead of using ARCH_OMAP
The ARCH_OMAP config option was used to built the GPIO OMAP
driver but this is not consistent with the rest of the GPIO
drivers that have their own Kconfig option.
Also, this make it harder to add dependencies or reverse
dependencies (i.e: select) since that would mean touching the
sub-arch config option.
So is better to add a boolean Kconfig option for this driver
that defaults to true if ARCH_OMAP is enabled.
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
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 110e7009b10a..43a65ed010de 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -243,6 +243,13 @@ config GPIO_OCTEON | |||
243 | Say yes here to support the on-chip GPIO lines on the OCTEON | 243 | Say yes here to support the on-chip GPIO lines on the OCTEON |
244 | family of SOCs. | 244 | family of SOCs. |
245 | 245 | ||
246 | config GPIO_OMAP | ||
247 | bool "TI OMAP GPIO support" | ||
248 | default y if ARCH_OMAP | ||
249 | depends on ARM && ARCH_OMAP | ||
250 | help | ||
251 | Say yes here to enable GPIO support for TI OMAP SoCs. | ||
252 | |||
246 | config GPIO_PL061 | 253 | config GPIO_PL061 |
247 | bool "PrimeCell PL061 GPIO support" | 254 | bool "PrimeCell PL061 GPIO support" |
248 | depends on ARM_AMBA | 255 | depends on ARM_AMBA |
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 6309aff1d806..d10f6a9d875a 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile | |||
@@ -58,7 +58,7 @@ obj-$(CONFIG_GPIO_MVEBU) += gpio-mvebu.o | |||
58 | obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o | 58 | obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o |
59 | obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o | 59 | obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o |
60 | obj-$(CONFIG_GPIO_OCTEON) += gpio-octeon.o | 60 | obj-$(CONFIG_GPIO_OCTEON) += gpio-octeon.o |
61 | obj-$(CONFIG_ARCH_OMAP) += gpio-omap.o | 61 | obj-$(CONFIG_GPIO_OMAP) += gpio-omap.o |
62 | obj-$(CONFIG_GPIO_PCA953X) += gpio-pca953x.o | 62 | obj-$(CONFIG_GPIO_PCA953X) += gpio-pca953x.o |
63 | obj-$(CONFIG_GPIO_PCF857X) += gpio-pcf857x.o | 63 | obj-$(CONFIG_GPIO_PCF857X) += gpio-pcf857x.o |
64 | obj-$(CONFIG_GPIO_PCH) += gpio-pch.o | 64 | obj-$(CONFIG_GPIO_PCH) += gpio-pch.o |