[U-Boot] [PATCH 08/28] Convert CONFIG_CMD_BAT to Kconfig
Simon Glass
sjg at chromium.org
Thu Apr 27 04:27:51 UTC 2017
This converts the following to Kconfig:
CONFIG_CMD_BAT
Signed-off-by: Simon Glass <sjg at chromium.org>
---
board/ti/sdp4430/Kconfig | 3 +++
configs/omap4_sdp4430_defconfig | 1 +
include/configs/omap4_sdp4430.h | 3 ---
scripts/config_whitelist.txt | 1 -
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/ti/sdp4430/Kconfig b/board/ti/sdp4430/Kconfig
index 5826d8fd0b..36f1852821 100644
--- a/board/ti/sdp4430/Kconfig
+++ b/board/ti/sdp4430/Kconfig
@@ -9,4 +9,7 @@ config SYS_VENDOR
config SYS_CONFIG_NAME
default "omap4_sdp4430"
+config CMD_BAT
+ bool "Enable board-specific battery command"
+
endif
diff --git a/configs/omap4_sdp4430_defconfig b/configs/omap4_sdp4430_defconfig
index 553d978de2..b32855f4ce 100644
--- a/configs/omap4_sdp4430_defconfig
+++ b/configs/omap4_sdp4430_defconfig
@@ -3,6 +3,7 @@ CONFIG_ARM=y
# CONFIG_SPL_USE_ARCH_MEMSET is not set
CONFIG_OMAP44XX=y
CONFIG_TARGET_OMAP4_SDP4430=y
+CONFIG_CMD_BAT=y
# CONFIG_SPL_NAND_SUPPORT is not set
CONFIG_DISTRO_DEFAULTS=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h
index 072b97ec99..14379ab051 100644
--- a/include/configs/omap4_sdp4430.h
+++ b/include/configs/omap4_sdp4430.h
@@ -22,9 +22,6 @@
#include <configs/ti_omap4_common.h>
/* Battery Charger */
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_CMD_BAT 1
-#endif
/* ENV related config options */
#define CONFIG_ENV_IS_IN_MMC 1
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 656e1b2f5f..44fe46b988 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -393,7 +393,6 @@ CONFIG_CM922T_XA10
CONFIG_CMDLINE_EDITING
CONFIG_CMDLINE_PS_SUPPORT
CONFIG_CMDLINE_TAG
-CONFIG_CMD_BAT
CONFIG_CMD_BEDBUG
CONFIG_CMD_BLOB
CONFIG_CMD_BMODE
--
2.13.0.rc0.306.g87b477812d-goog
More information about the U-Boot
mailing list