soc: arm: npcx: move workaround methods for npcx series to its soc.c

Move workaround methods for npcx series to soc init functions. If
there's no workaround for this series, drop its soc.c file directly.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
This commit is contained in:
Mulin Chao 2023-08-20 19:27:47 -07:00 committed by Fabio Baltieri
commit f942b44c56
6 changed files with 27 additions and 44 deletions

View file

@ -275,11 +275,6 @@ static int qspi_npcx_fiu_init(const struct device *dev)
}
}
/* Make sure there is no address field (UMA_ADDR_SIZE is zero) in UMA mode */
if (IS_ENABLED(CONFIG_SOC_SERIES_NPCX4)) {
SET_FIELD(inst->UMA_ECTS, NPCX_UMA_ECTS_UMA_ADDR_SIZE, 0);
}
return 0;
}