soc: snps_arc_iot: Get CPU clock frequency from DTS
The SoC initialization code used system clock frequency as a CPU clock frequency. This commit corrects that by obtaining the needed value from DTS. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
This commit is contained in:
parent
8f22b16b6c
commit
65b7f8ddcf
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ static int arc_iot_init(struct device *dev)
|
|||
ARG_UNUSED(dev);
|
||||
|
||||
if (arc_iot_pll_fout_config(
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC / 1000000) < 0) {
|
||||
DT_SNPS_ARCEM_0_CLOCK_FREQUENCY / 1000000) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue