]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
gpio: xtensa: depend on HAVE_XTENSA_GPIO32
authorBaruch Siach <baruch@tkos.co.il>
Wed, 18 Dec 2013 07:10:29 +0000 (09:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jan 2014 17:58:19 +0000 (18:58 +0100)
Prevent build failure when the selected variant does not support GPIO32.

Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/xtensa/Kconfig
drivers/gpio/Kconfig

index 8d24dcb7cdac6df122e6779080b5e31b234a6ee5..f8df0cc70cb63bf2f0fa5e509f474f92cacc112c 100644 (file)
@@ -64,6 +64,9 @@ config MMU
 config VARIANT_IRQ_SWITCH
        def_bool n
 
 config VARIANT_IRQ_SWITCH
        def_bool n
 
+config HAVE_XTENSA_GPIO32
+       def_bool n
+
 menu "Processor type and features"
 
 choice
 menu "Processor type and features"
 
 choice
@@ -73,16 +76,19 @@ choice
 config XTENSA_VARIANT_FSF
        bool "fsf - default (not generic) configuration"
        select MMU
 config XTENSA_VARIANT_FSF
        bool "fsf - default (not generic) configuration"
        select MMU
+       select HAVE_XTENSA_GPIO32
 
 config XTENSA_VARIANT_DC232B
        bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
        select MMU
 
 config XTENSA_VARIANT_DC232B
        bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
        select MMU
+       select HAVE_XTENSA_GPIO32
        help
          This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
 
 config XTENSA_VARIANT_DC233C
        bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
        select MMU
        help
          This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
 
 config XTENSA_VARIANT_DC233C
        bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
        select MMU
+       select HAVE_XTENSA_GPIO32
        help
          This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
 
        help
          This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
 
index 1a07c404483901a3786549ea2918337f503e07ba..858d489f6baefa7cc369b7810e2cec908c1b2196 100644 (file)
@@ -300,6 +300,7 @@ config GPIO_XILINX
 config GPIO_XTENSA
        bool "Xtensa GPIO32 support"
        depends on XTENSA
 config GPIO_XTENSA
        bool "Xtensa GPIO32 support"
        depends on XTENSA
+       depends on HAVE_XTENSA_GPIO32
        depends on !SMP
        help
          Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
        depends on !SMP
        help
          Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)