diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2019-10-03 12:00:17 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-17 06:20:06 +0000 |
commit | 37edd51bc1465a873ede878978556542b8fe3c20 (patch) | |
tree | 553eca5310533915128ee936b52f941ef5f93a85 /chip/it83xx/system.c | |
parent | 9e271aeb78c7f8bc21cd52b66305217d0770ac46 (diff) | |
download | chrome-ec-37edd51bc1465a873ede878978556542b8fe3c20.tar.gz |
chip/it83xx: introduction of IT83202/BX version
- Changing PLL and standby instruction didn't work on AX have been
fixed on this version, so we can remove patches dedicated for AX.
- Enable more chip config option.
- Disable IT83XX_INTC_GROUP_21_22_SUPPORT option:
Because IT8xxx2 series has its own interrupt group 21 and 22,
so we will create another CL to support them.
- System triggers a soft reset by default if IT83XX_ETWD_HW_RESET_SUPPORT
option is enabled.
BUG=b:134542199; b:133460224; b:142029177
BRANCH=none
TEST=boots on BX version.
console command reboot:
reboot hard
Hard-Rebooting!
[Reset cause: power-on hard]
reboot
Rebooting!
[Reset cause: soft]
Change-Id: I06e57952cd758b4f344ada0f87729c961b1e747b
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1835884
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/it83xx/system.c')
-rw-r--r-- | chip/it83xx/system.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c index 144d75c35c..537455d4b9 100644 --- a/chip/it83xx/system.c +++ b/chip/it83xx/system.c @@ -119,6 +119,10 @@ void chip_pre_init(void) { /* bit4, enable debug mode through SMBus */ IT83XX_SMB_SLVISELR &= ~BIT(4); + + if (IS_ENABLED(IT83XX_ETWD_HW_RESET_SUPPORT)) + /* System triggers a soft reset by default (command: reboot). */ + IT83XX_GCTRL_ETWDUARTCR &= ~ETWD_HW_RST_EN; } #define BRAM_VALID_MAGIC 0x4252414D /* "BRAM" */ @@ -194,7 +198,7 @@ void system_reset(int flags) /* bit0: enable watchdog hardware reset. */ #ifdef IT83XX_ETWD_HW_RESET_SUPPORT if (flags & SYSTEM_RESET_HARD) - IT83XX_GCTRL_ETWDUARTCR |= BIT(0); + IT83XX_GCTRL_ETWDUARTCR |= ETWD_HW_RST_EN; #endif /* * Writing invalid key to watchdog module triggers a soft or hardware |