gpio: ts4900: Add hardware dependencies
authorJean Delvare <jdelvare@suse.de>
Fri, 14 Oct 2016 12:24:09 +0000 (14:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Oct 2016 14:33:11 +0000 (16:33 +0200)
All the boards supported by the gpio-ts4900 driver are i.MX6 boards,
so only offer the driver for building on this platform, unless
build-testing.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Lucile Quirion <lucile.quirion@savoirfairelinux.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig

index 41e2a8f..8eea332 100644 (file)
@@ -802,6 +802,7 @@ config GPIO_TPIC2810
 
 config GPIO_TS4900
        tristate "Technologic Systems FPGA I2C GPIO"
+       depends on SOC_IMX6 || COMPILE_TEST
        select REGMAP_I2C
        help
          Say yes here to enabled the GPIO driver for Technologic's FPGA core.