Skip to content
Permalink
Browse files

soc: kwx: 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 cd317be commit 8ceb0d2911956ed50cc871f16119151e28c527e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 soc/arm/nxp_kinetis/kwx/soc_kw2xd.c
@@ -164,7 +164,7 @@ static ALWAYS_INLINE void clkInit(void)
CLOCK_SetSimConfig(&simConfig);
#if CONFIG_USB_KINETIS
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcPll0,
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
DT_ARM_CORTEX_M4_0_CLOCK_FREQUENCY);
#endif
}

0 comments on commit 8ceb0d2

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