summaryrefslogtreecommitdiff
path: root/chip/npcx/peci.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/npcx/peci.c')
-rw-r--r--chip/npcx/peci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip/npcx/peci.c b/chip/npcx/peci.c
index d5de9c1e40..2850ce793c 100644
--- a/chip/npcx/peci.c
+++ b/chip/npcx/peci.c
@@ -247,6 +247,12 @@ static void peci_init(void)
{
int i;
+ /* Enable clock for PECI peripheral */
+ clock_enable_peripheral(CGC_OFFSET_PECI, CGC_PECI_MASK,
+ CGC_MODE_RUN | CGC_MODE_SLEEP);
+ /* Set PECI freq */
+ peci_freq_changed();
+
/* make sure PECI_DATA function pin enable */
CLEAR_BIT(NPCX_DEVALT(0x0A), 6);
/* Set initial clock frequency */