Commit ac60e46e7d316cdcec44d01a7c19e13dedd00b49

Authored by Simon Glass
Committed by Tom Rini
1 parent 4848d89d1f

Convert CONFIG_CMD_BAT to Kconfig

This converts the following to Kconfig:
   CONFIG_CMD_BAT

Signed-off-by: Simon Glass <sjg@chromium.org>

Showing 4 changed files with 4 additions and 6 deletions Side-by-side Diff

board/ti/sdp4430/Kconfig
... ... @@ -9,5 +9,8 @@
9 9 config SYS_CONFIG_NAME
10 10 default "omap4_sdp4430"
11 11  
  12 +config CMD_BAT
  13 + bool "Enable board-specific battery command"
  14 +
12 15 endif
configs/omap4_sdp4430_defconfig
... ... @@ -4,6 +4,7 @@
4 4 CONFIG_ARCH_OMAP2PLUS=y
5 5 CONFIG_OMAP44XX=y
6 6 CONFIG_TARGET_OMAP4_SDP4430=y
  7 +CONFIG_CMD_BAT=y
7 8 # CONFIG_SPL_NAND_SUPPORT is not set
8 9 CONFIG_DISTRO_DEFAULTS=y
9 10 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
include/configs/omap4_sdp4430.h
... ... @@ -21,11 +21,6 @@
21 21  
22 22 #include <configs/ti_omap4_common.h>
23 23  
24   -/* Battery Charger */
25   -#ifndef CONFIG_SPL_BUILD
26   -#define CONFIG_CMD_BAT 1
27   -#endif
28   -
29 24 /* ENV related config options */
30 25 #define CONFIG_ENV_IS_IN_MMC 1
31 26 #define CONFIG_SYS_MMC_ENV_DEV 1 /* SLOT2: eMMC(1) */
scripts/config_whitelist.txt
... ... @@ -393,7 +393,6 @@
393 393 CONFIG_CMDLINE_EDITING
394 394 CONFIG_CMDLINE_PS_SUPPORT
395 395 CONFIG_CMDLINE_TAG
396   -CONFIG_CMD_BAT
397 396 CONFIG_CMD_BEDBUG
398 397 CONFIG_CMD_BLOB
399 398 CONFIG_CMD_BMODE