diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2021-03-29 18:31:37 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-07 02:50:27 +0000 |
commit | adcaef75c457970dc5b17e8bf5a2346302836832 (patch) | |
tree | 23c70c4f4be0321065b8431a3eeca6c8c72a8e1b /baseboard/kukui | |
parent | 19dcdf2830ae424f7d24c828002fa133a7b7b38d (diff) | |
download | chrome-ec-adcaef75c457970dc5b17e8bf5a2346302836832.tar.gz |
it8xxx2: add support option CONFIG_PRESERVE_LOGS
On it8xxx2 chips, assert WRST# to reset itself will clear memory
content to default value, this is a HW mechanism. So if
CONFIG_PRESERVE_LOGS and CONFIG_IT83XX_HARD_RESET_BY_GPG1 are enabled
at the same time, we have to save EC logs into flash before reset.
We will restore logs from flash on the next initialization before
jumping to main routine.
BUG=b:183899510, b:183466169
BRANCH=none
TEST=1) __image_size is same as ec.RW.bin size.
2) buildall.
3) manually verify reboot, poweroff, and sysjump from AP console:
localhost ~ # ectool uptimeinfo
EC uptime: 64.755 seconds
AP resets since EC boot: 0
Most recent AP reset causes:
EC reset flags at last EC boot: reset-pin | power-on
localhost ~ # reboot
...
localhost ~ # ectool uptimeinfo
EC uptime: 19.334 seconds
AP resets since EC boot: 0
Most recent AP reset causes:
71.609: reset: at AP's request
EC reset flags at last EC boot: reset-pin | power-on | hard
localhost ~ # poweroff
...
localhost ~ # ectool uptimeinfo
EC uptime: 20.627 seconds
AP resets since EC boot: 0
Most recent AP reset causes:
71.609: reset: at AP's request
32.149: reset: at AP's request
EC reset flags at last EC boot: reset-pin | power-on | hard
localhost ~ # ectool reboot_ec RW
localhost ~ # ectool uptimeinfo
EC uptime: 37.998 seconds
AP resets since EC boot: 0
Most recent AP reset causes:
71.609: reset: at AP's request
32.149: reset: at AP's request
EC reset flags at last EC boot: reset-pin | power-on | sysjump | hard
localhost ~ #
Change-Id: I76b5f172b7728dc5ce9bf3a965cb7b2d638f8fc3
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2794322
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'baseboard/kukui')
-rw-r--r-- | baseboard/kukui/baseboard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/baseboard/kukui/baseboard.h b/baseboard/kukui/baseboard.h index ba3fb45bfc..9aa1362534 100644 --- a/baseboard/kukui/baseboard.h +++ b/baseboard/kukui/baseboard.h @@ -162,6 +162,7 @@ #define CONFIG_FORCE_CONSOLE_RESUME #define CONFIG_HOST_COMMAND_STATUS #define CONFIG_CMD_AP_RESET_LOG +#define CONFIG_PRESERVE_LOGS /* Required for FAFT */ #define CONFIG_CMD_BUTTON @@ -256,7 +257,6 @@ #define CPU_CLOCK 48000000 #undef CONFIG_HIBERNATE -#define CONFIG_PRESERVE_LOGS #define CONFIG_SPI_MASTER #define CONFIG_STM_HWTIMER32 #define CONFIG_WATCHDOG_HELP |