Commit a1a2bdec authored by Baruch Siach's avatar Baruch Siach Committed by Linus Walleij

gpio: xtensa: depend on HAVE_XTENSA_GPIO32

Prevent build failure when the selected variant does not support GPIO32.
Acked-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ffd4bf1a
...@@ -64,6 +64,9 @@ config MMU ...@@ -64,6 +64,9 @@ config MMU
config VARIANT_IRQ_SWITCH config VARIANT_IRQ_SWITCH
def_bool n def_bool n
config HAVE_XTENSA_GPIO32
def_bool n
menu "Processor type and features" menu "Processor type and features"
choice choice
...@@ -73,16 +76,19 @@ choice ...@@ -73,16 +76,19 @@ choice
config XTENSA_VARIANT_FSF config XTENSA_VARIANT_FSF
bool "fsf - default (not generic) configuration" bool "fsf - default (not generic) configuration"
select MMU select MMU
select HAVE_XTENSA_GPIO32
config XTENSA_VARIANT_DC232B config XTENSA_VARIANT_DC232B
bool "dc232b - Diamond 232L Standard Core Rev.B (LE)" bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
select MMU select MMU
select HAVE_XTENSA_GPIO32
help help
This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE). This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
config XTENSA_VARIANT_DC233C config XTENSA_VARIANT_DC233C
bool "dc233c - Diamond 233L Standard Core Rev.C (LE)" bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
select MMU select MMU
select HAVE_XTENSA_GPIO32
help help
This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE). This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
......
...@@ -300,6 +300,7 @@ config GPIO_XILINX ...@@ -300,6 +300,7 @@ config GPIO_XILINX
config GPIO_XTENSA config GPIO_XTENSA
bool "Xtensa GPIO32 support" bool "Xtensa GPIO32 support"
depends on XTENSA depends on XTENSA
depends on HAVE_XTENSA_GPIO32
depends on !SMP depends on !SMP
help help
Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input) Say yes here to support the Xtensa internal GPIO32 IMPWIRE (input)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment