summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-04-06 13:00:30 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-07 01:42:05 +0000
commit4e412c42d5e2c14a8b3f0ad001435e2d8f88f58c (patch)
tree8347c7a4bddf219bf749ce566917bb4a89f93049
parent0f2a90bb2a1fd35f5f63c0e1b8fa7630d139a2c0 (diff)
downloadchrome-ec-4e412c42d5e2c14a8b3f0ad001435e2d8f88f58c.tar.gz
zephyr: kconfig: move console_cmd_mem configs to separate file
Clean up the root Kconfig for Zephyr by moving sub configs to separate file (Kconfig.console_cmd_mem). BRANCH=none BUG=none TEST=zmake testall Change-Id: Id9abef7be1943eee42fe6a31cf0488f4b7209a42 Signed-off-by: Yuval Peress <peress@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2808144 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/Kconfig31
-rw-r--r--zephyr/Kconfig.console_cmd_mem32
2 files changed, 33 insertions, 30 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig
index 712e179811..433a6648fe 100644
--- a/zephyr/Kconfig
+++ b/zephyr/Kconfig
@@ -36,6 +36,7 @@ rsource "Kconfig.adc"
rsource "Kconfig.battery"
rsource "Kconfig.board_version"
rsource "Kconfig.console"
+rsource "Kconfig.console_cmd_mem"
rsource "Kconfig.header"
rsource "Kconfig.keyboard"
rsource "Kconfig.led"
@@ -185,36 +186,6 @@ config PLATFORM_EC_CONSOLE_CMD_MEM
md - dump memory values
rw - read or write in memory
-if PLATFORM_EC_CONSOLE_CMD_MEM
-
-config PLATFORM_EC_CONSOLE_CMD_MD
- bool "Console command: md"
- default y
- help
- Enable the "md" command. This dumps memory value from a specified
- address, optionally specifying the format.
-
- Example:
- md 0x64000000 10
-
- 64000000: 2a3b4d5e 030054e1 07000000 09297110
- 64000010: 00000010 03db4f00 03db5000 00000100
- 64000020: 00000000 00000000
-
-config PLATFORM_EC_CONSOLE_CMD_RW
- bool "Console command: rw"
- default y
- help
- Enable the "rw" command. This Read or write in memory optionally
- specifying the size.
-
- Example:
- rw 0x64000000
-
- read 0x64000000 = 0x2a3b4d5e
-
-endif # PLATFORM_EC_CONSOLE_CMD_MEM
-
config PLATFORM_EC_DEBUG_ASSERT
bool "Enable assertion failures"
default y
diff --git a/zephyr/Kconfig.console_cmd_mem b/zephyr/Kconfig.console_cmd_mem
new file mode 100644
index 0000000000..4b69cc1778
--- /dev/null
+++ b/zephyr/Kconfig.console_cmd_mem
@@ -0,0 +1,32 @@
+# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if PLATFORM_EC_CONSOLE_CMD_MEM
+config PLATFORM_EC_CONSOLE_CMD_MD
+ bool "Console command: md"
+ default y
+ help
+ Enable the "md" command. This dumps memory value from a specified
+ address, optionally specifying the format.
+
+ Example:
+ md 0x64000000 10
+
+ 64000000: 2a3b4d5e 030054e1 07000000 09297110
+ 64000010: 00000010 03db4f00 03db5000 00000100
+ 64000020: 00000000 00000000
+
+config PLATFORM_EC_CONSOLE_CMD_RW
+ bool "Console command: rw"
+ default y
+ help
+ Enable the "rw" command. This Read or write in memory optionally
+ specifying the size.
+
+ Example:
+ rw 0x64000000
+
+ read 0x64000000 = 0x2a3b4d5e
+
+endif # PLATFORM_EC_CONSOLE_CMD_MEM