Skip to content

Commit

Permalink
soc: snps_arc_iot: Get CPU clock frequency from DTS
Browse files Browse the repository at this point in the history
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 Jul 24, 2019
1 parent 8f22b16 commit 65b7f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soc/arc/snps_arc_iot/soc.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 65b7f8d

Please sign in to comment.