Skip to content
Permalink
Browse files

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>
  • Loading branch information...
pizi-nordic authored and carlescufi committed Apr 11, 2019
1 parent 8f22b16 commit 65b7f8ddcf44a9798bd5cbf938b0bd68b0ff0701
Showing with 1 addition and 1 deletion.
  1. +1 −1 soc/arc/snps_arc_iot/soc.c
@@ -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;
}

0 comments on commit 65b7f8d

Please sign in to comment.
You can’t perform that action at this time.