/* * Copyright (c) 2020 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) { struct scfg_reg *inst_scfg = (struct scfg_reg *) DT_REG_ADDR_BY_NAME(DT_NODELABEL(scfg), scfg); /* * Set bit 7 of DEVCNT again for npcx7 series. Please see Errata * for more information. It will be fixed in next chip. */ inst_scfg->DEVCNT |= BIT(7); scfg_init(); }