Convert CONFIG_SYS_LOADS_BAUD_CHANGE et al to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_LOADS_BAUD_CHANGE
CONFIG_LOADS_ECHO
As part of this, we move CMD_SAVES to be after CMD_LOADS as they are
logically related (load or save an s-record format file) and this makes
grouping of CONFIG_SYS_LOADS_BAUD_CHANGE easier.
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 1054064..1092fb9 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1200,11 +1200,31 @@
Load a binary over memory mapped.
config CMD_LOADS
- bool "loads"
+ bool "loads - Load a file over serial in S-Record format"
default y
help
Load an S-Record file over serial line
+config LOADS_ECHO
+ bool "Echo all characters received during a loads back to console"
+ depends on CMD_LOADS
+ help
+ If enabled, all characters received during a serial download (using
+ the "loads" command) are echoed back. This might be needed by some
+ terminal emulations (like "cu"), but may as well just take time on
+ others. This sets the initial value of the "loads_echo" environment
+ variable to 1.
+
+config CMD_SAVES
+ bool "saves - Save a file over serial in S-Record format"
+ help
+ Provides a way to save a binary file using the Motorola S-Record
+ format over the serial line.
+
+config SYS_LOADS_BAUD_CHANGE
+ bool "Enable a temporary baudrate change during loads/saves command"
+ depends on CMD_LOADS || CMD_SAVES
+
config CMD_LOADXY_TIMEOUT
int "loadxy_timeout"
range 0 2000
@@ -1404,12 +1424,6 @@
Attachment, where AT refers to an IBM AT (Advanced Technology)
computer released in 1984.
-config CMD_SAVES
- bool "saves - Save a file over serial in S-Record format"
- help
- Provides a way to save a binary file using the Motorola S-Record
- format over the serial line.
-
config CMD_SCSI
bool "scsi - Access to SCSI devices"
default y if SCSI