diff options
author | Tim Lin <tim2.lin@ite.corp-partner.google.com> | 2021-06-25 10:28:10 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-02 17:30:36 +0000 |
commit | ab6303a9ff68de8a3cf09c24ee6457f08b98582e (patch) | |
tree | 0ac81d0b792b076135755fbd6d865ab3f79309ee /zephyr/projects/it8xxx2_evb | |
parent | c3d4776d408cb1c73795c9cfac977b6cf6893942 (diff) | |
download | chrome-ec-ab6303a9ff68de8a3cf09c24ee6457f08b98582e.tar.gz |
zephyr: it8xxx2_evb: enable flash driver
Enable flash driver and access by console 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:2991399
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Change-Id: I226925f8bd1ae672bf0a97e61d9210ebefe67bc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2952803
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/it8xxx2_evb')
-rw-r--r-- | zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig | 3 | ||||
-rw-r--r-- | zephyr/projects/it8xxx2_evb/prj.conf | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig index 849d80a7ce..336c8a3726 100644 --- a/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig +++ b/zephyr/projects/it8xxx2_evb/boards/riscv/it8xxx2_evb/it8xxx2_evb_defconfig @@ -49,6 +49,9 @@ CONFIG_PLATFORM_EC_ADC_RESOLUTION=10 CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768 CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768 +# Flash +CONFIG_SOC_FLASH_ITE_IT8XXX2=y + # Code RAM base for IT8XXX2 CONFIG_CROS_EC_PROGRAM_MEMORY_BASE=0x80000000 CONFIG_CROS_EC_RAM_BASE=0x80100000 diff --git a/zephyr/projects/it8xxx2_evb/prj.conf b/zephyr/projects/it8xxx2_evb/prj.conf index 8b1980cb91..2f975a6b86 100644 --- a/zephyr/projects/it8xxx2_evb/prj.conf +++ b/zephyr/projects/it8xxx2_evb/prj.conf @@ -18,6 +18,7 @@ CONFIG_PLATFORM_EC_I2C=y # Flash CONFIG_PLATFORM_EC_FLASH_CROS=y +CONFIG_PLATFORM_EC_CONSOLE_CMD_FLASH=y # Lid switch CONFIG_PLATFORM_EC_LID_SWITCH=y |