divers: clock_control: npcx: HFCBCD3 in CDCG is only available in npcx4

As title.

Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
This commit is contained in:
Alvis Sun 2024-08-07 11:39:29 +08:00 committed by Anas Nashif
commit 421ca39cf0

View file

@ -232,7 +232,9 @@ static int npcx_clock_control_init(const struct device *dev)
inst_cdcg->HFCBCD = VAL_HFCBCD;
inst_cdcg->HFCBCD1 = VAL_HFCBCD1;
inst_cdcg->HFCBCD2 = VAL_HFCBCD2;
#if defined(CONFIG_SOC_SERIES_NPCX4)
inst_cdcg->HFCBCD3 = VAL_HFCBCD3;
#endif
/*
* Power-down (turn off clock) the modules initially for better