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:
Piotr Zięcik 2019-04-11 14:28:52 +02:00 committed by Carles Cufí
commit 65b7f8ddcf

View file

@ -19,7 +19,7 @@ static int arc_iot_init(struct device *dev)
ARG_UNUSED(dev); ARG_UNUSED(dev);
if (arc_iot_pll_fout_config( 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; return -1;
} }