Convert CONFIG_KEYBOARD to Kconfig
authorSimon Glass <sjg@chromium.org>
Wed, 24 Nov 2021 16:26:44 +0000 (09:26 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 5 Dec 2021 16:26:26 +0000 (09:26 -0700)
This converts the following to Kconfig:
   CONFIG_KEYBOARD

Signed-off-by: Simon Glass <sjg@chromium.org>
18 files changed:
README
arch/Kconfig
arch/arm/mach-exynos/Kconfig
configs/chromebit_mickey_defconfig
configs/chromebook_jerry_defconfig
configs/chromebook_minnie_defconfig
configs/chromebook_speedy_defconfig
configs/novena_defconfig
configs/smdk5250_defconfig
configs/smdk5420_defconfig
drivers/input/Kconfig
include/configs/exynos5-dt-common.h
include/configs/novena.h
include/configs/sandbox.h
include/configs/smdk5250.h
include/configs/smdk5420.h
include/configs/veyron.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 27e0b07..05b0d3f 100644 (file)
--- a/README
+++ b/README
@@ -1063,14 +1063,6 @@ The following options need to be configured:
 - Keyboard Support:
                See Kconfig help for available keyboard drivers.
 
-               CONFIG_KEYBOARD
-
-               Define this to enable a custom keyboard support.
-               This simply calls drv_keyboard_init() which must be
-               defined in your board-specific files. This option is deprecated
-               and is only used by novena. For new boards, use driver model
-               instead.
-
 - Video support:
                CONFIG_FSL_DIU_FB
                Enable the Freescale DIU video driver.  Reference boards for
index 3e2cc84..fffddac 100644 (file)
@@ -194,6 +194,7 @@ config SANDBOX
        imply PHY_FIXED
        imply DM_DSA
        imply CMD_EXTENSION
+       imply KEYBOARD
 
 config SH
        bool "SuperH architecture"
index 7f3aee5..10301c1 100644 (file)
@@ -23,6 +23,7 @@ config ARCH_EXYNOS5
        imply CMD_HASH
        imply CRC32_VERIFY
        imply HASH_VERIFY
+       imply KEYBOARD
        imply USB_ETHER_ASIX
        imply USB_ETHER_RTL8152
        imply USB_ETHER_SMSC95XX
index 80ed1f0..62b54d9 100644 (file)
@@ -61,6 +61,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_I2C_MUX=y
 CONFIG_DM_KEYBOARD=y
+CONFIG_KEYBOARD=y
 CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_SPI=y
index 85f6120..a9f81e3 100644 (file)
@@ -63,6 +63,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_I2C_MUX=y
 CONFIG_DM_KEYBOARD=y
+CONFIG_KEYBOARD=y
 CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_SPI=y
index 41a3fe1..1e87b11 100644 (file)
@@ -63,6 +63,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_I2C_MUX=y
 CONFIG_DM_KEYBOARD=y
+CONFIG_KEYBOARD=y
 CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_SPI=y
index b396d9f..f1ccdc4 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_I2C_CROS_EC_TUNNEL=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_I2C_MUX=y
 CONFIG_DM_KEYBOARD=y
+CONFIG_KEYBOARD=y
 CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_SPI=y
index 06864db..e40e80e 100644 (file)
@@ -60,6 +60,7 @@ CONFIG_DWC_AHSATA=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_SYS_I2C_MXC=y
+CONFIG_KEYBOARD=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
index 9429114..f8350bf 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_USE_ENV_SPI_BUS=y
 CONFIG_ENV_SPI_BUS=1
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SYS_I2C_S3C24X0=y
+# CONFIG_KEYBOARD is not set
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_SDHCI=y
index e62f432..a9924a4 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_USE_ENV_SPI_BUS=y
 CONFIG_ENV_SPI_BUS=1
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SYS_I2C_S3C24X0=y
+# CONFIG_KEYBOARD is not set
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_SDHCI=y
index a17e55e..0b753f3 100644 (file)
@@ -38,6 +38,15 @@ config TPL_DM_KEYBOARD
          includes methods to start/stop the device, check for available
          input and update LEDs if the keyboard has them.
 
+config KEYBOARD
+       bool "Enable legacy keyboard support (deprecated)"
+       help
+         Enable this to enable a custom keyboard support.
+         This simply calls drv_keyboard_init() which must be
+         defined in your board-specific files. This option is deprecated
+         and is only used by novena. For new boards, use driver model
+         instead.
+
 config CROS_EC_KEYB
        bool "Enable Chrome OS EC keyboard support"
        depends on INPUT
index cc9ffda..00b6778 100644 (file)
@@ -30,7 +30,4 @@
 #define LCD_BPP                        LCD_COLOR16
 #endif
 
-/* Enable keyboard */
-#define CONFIG_KEYBOARD
-
 #endif
index 28fb1b8..f09b868 100644 (file)
@@ -9,7 +9,6 @@
 #define __CONFIG_H
 
 /* System configurations */
-#define CONFIG_KEYBOARD
 
 #include "mx6_common.h"
 
index fd972b8..d0adcfd 100644 (file)
 #define CONFIG_SANDBOX_SDL
 #endif
 
-/* LCD and keyboard require SDL support */
-#ifdef CONFIG_SANDBOX_SDL
-#define LCD_BPP                        LCD_COLOR16
-#define CONFIG_LCD_BMP_RLE8
-
-#define CONFIG_KEYBOARD
-#endif
-
 #ifndef CONFIG_SPL_BUILD
 #define CONFIG_SYS_IDE_MAXBUS          1
 #define CONFIG_SYS_ATA_IDE0_OFFSET     0
index 3af1367..d7e86f2 100644 (file)
@@ -14,7 +14,6 @@
 
 #undef CONFIG_EXYNOS_FB
 #undef CONFIG_EXYNOS_DP
-#undef CONFIG_KEYBOARD
 
 #define CONFIG_BOARD_COMMON
 
index d06dfe4..38691b6 100644 (file)
@@ -15,8 +15,6 @@
 #undef CONFIG_EXYNOS_FB
 #undef CONFIG_EXYNOS_DP
 
-#undef CONFIG_KEYBOARD
-
 #define CONFIG_BOARD_COMMON
 
 #define CONFIG_SMDK5420                        /* which is in a SMDK5420 */
index 2ab6d6c..ce9441d 100644 (file)
@@ -13,6 +13,4 @@
 
 #include <configs/rk3288_common.h>
 
-#define CONFIG_KEYBOARD
-
 #endif
index a8c3a38..d376216 100644 (file)
@@ -641,7 +641,6 @@ CONFIG_JFFS2_SUMMARY
 CONFIG_JRSTARTR_JR0
 CONFIG_JTAG_CONSOLE
 CONFIG_KEEP_SERVERADDR
-CONFIG_KEYBOARD
 CONFIG_KEY_REVOCATION
 CONFIG_KIRKWOOD_EGIGA_INIT
 CONFIG_KIRKWOOD_GPIO