diff options
author | Rong Chang <rongchang@chromium.org> | 2019-03-25 16:14:26 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-23 07:21:33 -0700 |
commit | 84a70a900c76ea0c0767dba5ab2df120006dfd93 (patch) | |
tree | e9b0bae18359dd9bb267d580d1d10c8a7c775910 /chip/mt_scp | |
parent | 295a75e3460c45a2ae884546cb8f4b7f9c84c76c (diff) | |
download | chrome-ec-84a70a900c76ea0c0767dba5ab2df120006dfd93.tar.gz |
kukui: scp: Set CPU clock to default before ULPOSC calibration
ULPOSC 1 & 2 calibration may fail if SCP CPU clock selection is
configured to one of them. The SCP reset mechanism does not reset the
clock selection. So before calibration, set CPU to default clock.
BUG=b:125695639
BRANCH=none
TEST=manual
build and load on kukui, check remoteproc init correctly.
check SCP uart console command 'ulposc', output non-zero clocks.
Change-Id: I6807017808a663f8e80363dc0672748ab1957978
Signed-off-by: Rong Chang <rongchang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1538096
Reviewed-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'chip/mt_scp')
-rw-r--r-- | chip/mt_scp/system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/mt_scp/system.c b/chip/mt_scp/system.c index c2b685679c..c3c6defca2 100644 --- a/chip/mt_scp/system.c +++ b/chip/mt_scp/system.c @@ -82,6 +82,7 @@ void system_pre_init(void) /* SRAM */ scp_enable_tcm(); /* Clock */ + SCP_CLK_SEL = CLK_SEL_SYS_26M; scp_enable_clock(); SCP_CLK_SEL = CLK_SEL_ULPOSC_2; /* Peripheral IRQ */ |