/* * Copyright (c) 2024 Nuvoton Technology Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include #include LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL); extern void scfg_init(void); void soc_early_init_hook(void) { if (IS_ENABLED(CONFIG_NPCX_VCC1_RST_HANG_WORKAROUND)) { uintptr_t scfg_base = DT_REG_ADDR_BY_NAME(DT_NODELABEL(scfg), scfg); SET_FIELD(NPCX_JEN_CTL1(scfg_base), NPCX_JEN_CTL1_JEN_HEN, NPCX_JEN_CTL1_JEN_DISABLE); } scfg_init(); }