km/common: stop u-boot only if someone press <SPACE>
authorHolger Brunck <[email protected]>
Fri, 13 Nov 2015 15:15:19 +0000 (16:15 +0100)
committerTom Rini <[email protected]>
Wed, 18 Nov 2015 20:28:49 +0000 (15:28 -0500)
To prevent u-boot to stop accidently e.g. due to line noise on the
serial line, we now use the option CONFIG_AUTOBOOT_KEYED. We choose the
<SPACE> key for this.

Signed-off-by: Holger Brunck <[email protected]>
Signed-off-by: Valentin Longchamp <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
include/configs/km/keymile-common.h

index f3248bc1d53a034ca55c46ccaa69bf36beb0a21b..2fc1ea8328cbd917a9ee069dabb66b1cae554597 100644 (file)
 #define CONFIG_LOADS_ECHO
 #define CONFIG_SYS_LOADS_BAUD_CHANGE
 
+#define CONFIG_AUTOBOOT_KEYED
+#define CONFIG_AUTOBOOT_PROMPT "Hit <SPACE> key to stop autoboot in %2ds\n"
+#define CONFIG_AUTOBOOT_STOP_STR        " "
+
 /* Support the IVM EEprom */
 #define        CONFIG_SYS_IVM_EEPROM_ADR       0x50
 #define CONFIG_SYS_IVM_EEPROM_MAX_LEN  0x400