summaryrefslogtreecommitdiff
path: root/zephyr/projects/asurada
diff options
context:
space:
mode:
authorTim Lin <tim2.lin@ite.corp-partner.google.com>2021-06-28 13:53:58 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-02 17:30:40 +0000
commit5693c7824dac0f34d387b5f158f795b4a2874a0d (patch)
treee7c3912b06280322935d9d77f980cfa26d48bbc1 /zephyr/projects/asurada
parentab6303a9ff68de8a3cf09c24ee6457f08b98582e (diff)
downloadchrome-ec-5693c7824dac0f34d387b5f158f795b4a2874a0d.tar.gz
zephyr: asurada: enable flash console command configuration
Enable flash console command configuration and access by commands. BUG=b:187192628 BRANCH=none TEST=console cmd: "flashread 0 0x100" "flashwrite 0x80000 0x100" "flasherase 0x80000 0x1000" Cq-Depend: chromium:2981388 Cq-Depend: chromium:2991398 Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: I7fefb6fb51d26f7cb6f482bd7ebcc42fa764e01c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2991399 Tested-by: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/asurada')
-rw-r--r--zephyr/projects/asurada/boards/riscv/asurada/asurada.dts1
-rw-r--r--zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig1
2 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts b/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts
index 07434c750c..6c26e7378e 100644
--- a/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts
+++ b/zephyr/projects/asurada/boards/riscv/asurada/asurada.dts
@@ -18,6 +18,7 @@
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
zephyr,flash = &flash0;
+ zephyr,flash-controller = &flashctrl;
};
named-adc-channels {
diff --git a/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig b/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig
index fd4f4242fd..f05ded494c 100644
--- a/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig
+++ b/zephyr/projects/asurada/boards/riscv/asurada/asurada_defconfig
@@ -37,6 +37,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768
CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768
# Flash
+CONFIG_PLATFORM_EC_CONSOLE_CMD_FLASH=y
CONFIG_PLATFORM_EC_FLASH_CROS=y
CONFIG_SOC_FLASH_ITE_IT8XXX2=y