Convert CONFIG_CMD_ENTERRCM to Kconfig
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 09:25:11 +0000 (03:25 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 22 May 2017 13:33:53 +0000 (09:33 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_ENTERRCM

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-tegra/Kconfig
include/configs/tegra-common.h
scripts/config_whitelist.txt

index 66cf96063363a20940d683c1c2a4540db91db26e..940257b5ecfbe724342440cb8e4c6d789da01fb0 100644 (file)
@@ -127,4 +127,20 @@ source "arch/arm/mach-tegra/tegra124/Kconfig"
 source "arch/arm/mach-tegra/tegra210/Kconfig"
 source "arch/arm/mach-tegra/tegra186/Kconfig"
 
+config CMD_ENTERRCM
+       bool "Enable 'enterrcm' command"
+       default y
+       help
+         Tegra's boot ROM supports a mode whereby code may be downloaded and
+         flash-programmed over a USB connection. On dev boards, this is
+         typically entered by holding down a "force recovery" button and
+         resetting the CPU. However, not all boards have such a button (one
+         example is the Compulab Trimslice), so a method to enter RCM from
+         software is useful.
+
+         Even on boards other than Trimslice, controlling this over a UART
+         may be useful, e.g. to allow simple remote control without the need
+         for mechanical button actuators, or hooking up relays/... to the
+         button.
+
 endif
index d8b7ab7cb794cfc2d1ca7f01e744db0aeedd331a..6982eaa1af42be6ea5cf5ca600e2a65116a2c6fc 100644 (file)
@@ -87,8 +87,6 @@
                                                CONFIG_SYS_INIT_RAM_SIZE - \
                                                GENERATED_GBL_DATA_SIZE)
 
-#define CONFIG_CMD_ENTERRCM
-
 /* Defines for SPL */
 #define CONFIG_SPL_FRAMEWORK
 #define CONFIG_SPL_NAND_SIMPLE
index e2e69e32ee29a6438f56373503ff57a1b48172a9..6c50d9934efea854db78d2080b55ffae686bae35 100644 (file)
@@ -383,7 +383,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_ENTERRCM
 CONFIG_CMD_ENV
 CONFIG_CMD_ENV_CALLBACK
 CONFIG_CMD_ENV_FLAGS