soc: npcx: scfg: select host interface type in global
The Host Interface Type in the DEVCNT register sets the HIF type (either eSPI or LPC). Currently, it is configured in the host-interface-related drivers like eSPI or SHI. However, some I/O pads sourced from VHIF in the other modules such as GPIO and I3C also rely on this field. It might be problematic when using those I/Os without enabling eSPI or SHI drivers. This commit moves the setting from the specific drivers to the global system initialization function scfg_init(). Signed-off-by:Jun Lin <CHLin56@nuvoton.com> (cherry picked from commit 1aff2756)
Loading
Please sign in to comment