summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 03:25:11 -0600
committerTom Rini <trini@konsulko.com>2017-05-22 09:33:53 -0400
commit42e6f852dd0df304519f8dcb8b942a9324164c43 (patch)
treeb2c0119a7a2f86b90e2b52682e0e5449149e8144
parenta1dc980d88a5c9c2b99251c8d8299b0c8948de73 (diff)
downloadu-boot-42e6f852dd0df304519f8dcb8b942a9324164c43.tar.gz
Convert CONFIG_CMD_ENTERRCM to Kconfig
This converts the following to Kconfig: CONFIG_CMD_ENTERRCM Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/arm/mach-tegra/Kconfig16
-rw-r--r--include/configs/tegra-common.h2
-rw-r--r--scripts/config_whitelist.txt1
3 files changed, 16 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index 66cf960633..940257b5ec 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -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
diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h
index d8b7ab7cb7..6982eaa1af 100644
--- a/include/configs/tegra-common.h
+++ b/include/configs/tegra-common.h
@@ -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
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index e2e69e32ee..6c50d9934e 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -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