gpio: Move OMAP_GPIO to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 13 May 2017 02:33:21 +0000 (22:33 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 15 May 2017 14:40:00 +0000 (10:40 -0400)
This driver is used often enough such that we want to have this enabled
by default on any ARCH_OMAP2PLUS board, and this only compiles on
ARCH_OMAP2PLUS due to required defines, so mark that as the depends.

Signed-off-by: Tom Rini <trini@konsulko.com>
18 files changed:
drivers/gpio/Kconfig
include/configs/am3517_evm.h
include/configs/bur_am335x_common.h
include/configs/cm_t35.h
include/configs/cm_t3517.h
include/configs/kc1.h
include/configs/mcx.h
include/configs/nokia_rx51.h
include/configs/omap3_evm.h
include/configs/siemens-am33x-common.h
include/configs/sniper.h
include/configs/tam3517-common.h
include/configs/tao3530.h
include/configs/ti814x_evm.h
include/configs/ti816x_evm.h
include/configs/ti_armv7_omap.h
include/configs/tricorder.h
scripts/config_whitelist.txt

index 325d053..15135e5 100644 (file)
@@ -95,6 +95,14 @@ config MSM_GPIO
          - APQ8016
          - MSM8916
 
+config OMAP_GPIO
+       bool "TI OMAP GPIO driver"
+       depends on ARCH_OMAP2PLUS
+       default y
+       help
+         Support GPIO controllers on the TI OMAP3/4/5 and related (such as
+         AM335x/AM43xx/AM57xx/DRA7xx/etc) families of SoCs.
+
 config PM8916_GPIO
        bool "Qualcomm PM8916 PMIC GPIO/keypad driver"
        depends on DM_GPIO && PMIC_PM8916
index 27d64ea..feb7b6e 100644 (file)
@@ -45,9 +45,6 @@
 
 /* Hardware drivers */
 
-/* OMAP GPIO configuration */
-#define CONFIG_OMAP_GPIO
-
 /* NS16550 Configuration */
 #define V_NS16550_CLK                  48000000        /* 48MHz (APLL96/2) */
 #define CONFIG_SYS_NS16550_SERIAL
index 4f57241..7aad7ea 100644 (file)
@@ -75,8 +75,6 @@
 #define CONFIG_SYS_OMAP24_I2C_SPEED    100000
 #define CONFIG_SYS_OMAP24_I2C_SLAVE    1
 #define CONFIG_SYS_I2C_OMAP24XX
-/* GPIO */
-#define CONFIG_OMAP_GPIO
 
 /*
  * Our platforms make use of SPL to initalize the hardware (primarily
index 2d5b6f2..349a8de 100644 (file)
@@ -22,7 +22,6 @@
 /*
  * High Level Configuration Options
  */
-#define CONFIG_OMAP_GPIO
 #define CONFIG_CM_T3X  /* working with CM-T35 and CM-T3730 */
 
 #define CONFIG_SDRC    /* The chip has SDRC controller */
index 8093e7f..2fed312 100644 (file)
@@ -79,8 +79,6 @@
 #define CONFIG_SYS_BAUDRATE_TABLE      {4800, 9600, 19200, 38400, 57600,\
                                        115200}
 
-#define CONFIG_OMAP_GPIO
-
 /* USB */
 #define CONFIG_USB_MUSB_AM35X
 
index 39c750c..343685a 100644 (file)
 
 #define CONFIG_SYS_MALLOC_LEN          (1024 * 1024 + CONFIG_ENV_SIZE)
 
-/*
- * GPIO
- */
-
-#define CONFIG_OMAP_GPIO
-
 /*
  * I2C
  */
index a72696d..c698166 100644 (file)
@@ -12,7 +12,6 @@
 /*
  * High Level Configuration Options
  */
-#define CONFIG_OMAP_GPIO
 
 #define CONFIG_MACH_TYPE       MACH_TYPE_MCX
 
index e323ea3..5e2d599 100644 (file)
 #define CONFIG_TWL4030_LED
 #define CONFIG_TWL4030_KEYPAD
 
-#define CONFIG_OMAP_GPIO
 #define GPIO_SLIDE                     71
 
 /*
index 2239a02..d8ca622 100644 (file)
@@ -83,7 +83,6 @@
 /*
  * High level configuration options
  */
-#define CONFIG_OMAP_GPIO
 
 #define CONFIG_SDRC                    /* The chip has SDRC controller */
 
index 68278c0..8158696 100644 (file)
 #endif
 #endif
 
-#define CONFIG_OMAP_GPIO
-
-/* Gpio cmd support */
-
 /* Watchdog */
 #define CONFIG_HW_WATCHDOG
 
index 4f60bf7..23e965f 100644 (file)
@@ -58,8 +58,6 @@
 /*
  * GPIO
  */
-
-#define CONFIG_OMAP_GPIO
 #define CONFIG_OMAP3_GPIO_2
 #define CONFIG_OMAP3_GPIO_3
 #define CONFIG_OMAP3_GPIO_4
index 09a4f25..84d5907 100644 (file)
@@ -13,7 +13,6 @@
 /*
  * High Level Configuration Options
  */
-#define CONFIG_OMAP_GPIO
 
 #define CONFIG_SYS_TEXT_BASE 0x80008000
 
index 24144d4..85feb05 100644 (file)
@@ -16,7 +16,6 @@
 /*
  * High Level Configuration Options
  */
-#define CONFIG_OMAP_GPIO
 
 #define CONFIG_SDRC                    /* Has an SDRC controller */
 
index 44650f3..60322b1 100644 (file)
 
 #define CONFIG_SYS_LOAD_ADDR           0x81000000      /* Default */
 
-#define CONFIG_OMAP_GPIO
-
 /**
  * Physical Memory Map
  */
index 4233bad..51b09d4 100644 (file)
@@ -49,7 +49,6 @@
 #define CONFIG_SYS_LOAD_ADDR           0x81000000 /* Default load address */
 
 #define CONFIG_CMD_ASKENV
-#define CONFIG_OMAP_GPIO
 
 #define CONFIG_FS_FAT
 
index b7ca905..b4565da 100644 (file)
@@ -20,9 +20,6 @@
 /* SPI IP Block */
 #define CONFIG_OMAP3_SPI
 
-/* GPIO block */
-#define CONFIG_OMAP_GPIO
-
 /*
  * GPMC NAND block.  We support 1 device and the physical address to
  * access CS0 at is 0x8000000.
index 9b46386..bc592cf 100644 (file)
@@ -46,9 +46,6 @@
 
 /* Hardware drivers */
 
-/* GPIO support */
-#define CONFIG_OMAP_GPIO
-
 /* GPIO banks */
 #define CONFIG_OMAP3_GPIO_2            /* GPIO32..63 are in GPIO bank 2 */
 
index b9676aa..ea82a71 100644 (file)
@@ -1990,7 +1990,6 @@ CONFIG_OMAP3_SPI_D0_D1_SWAPPED
 CONFIG_OMAP_EHCI_PHY1_RESET_GPIO
 CONFIG_OMAP_EHCI_PHY2_RESET_GPIO
 CONFIG_OMAP_EHCI_PHY3_RESET_GPIO
-CONFIG_OMAP_GPIO
 CONFIG_OMAP_USB2PHY2_HOST
 CONFIG_OMAP_USB3PHY1_HOST
 CONFIG_OMAP_USB_PHY