summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/Kconfig
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-03-02 11:47:01 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-03-02 13:00:30 +0100
commit94337b72618eacc1756eba4765a15b3748f80fbc (patch)
tree6b342126287df1281aa7f7c5eda4182e0e9e1cc2 /drivers/gpio/Kconfig
parent9a3821c2bb47d2582b0c8f053d4c3bed7bd8d3d1 (diff)
downloadtalos-obmc-linux-94337b72618eacc1756eba4765a15b3748f80fbc.tar.gz
talos-obmc-linux-94337b72618eacc1756eba4765a15b3748f80fbc.zip
gpio: raspberrypi-exp: explain Kconfig dependency
Commit 7ed915059c3001 (gpio: raspberrypi-ext: fix firmware dependency) fixed the Kconfig dependency to ensure that gpio-raspberrypi-exp is not built-in when the firmware is a module. But the Kconfig syntax for doing so is cryptic. Add a comment to make it a little easier. Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r--drivers/gpio/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index f298a18b1f69..6b1ee11295d5 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -126,6 +126,8 @@ config GPIO_RASPBERRYPI_EXP
tristate "Raspberry Pi 3 GPIO Expander"
default RASPBERRYPI_FIRMWARE
depends on OF_GPIO
+ # Make sure not 'y' when RASPBERRYPI_FIRMWARE is 'm'. This can only
+ # happen when COMPILE_TEST=y, hence the added !RASPBERRYPI_FIRMWARE.
depends on (ARCH_BCM2835 && RASPBERRYPI_FIRMWARE) || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE)
help
Turn on GPIO support for the expander on Raspberry Pi 3 boards, using
OpenPOWER on IntegriCloud