Skip to content
Permalink
Browse files

soc: kl2x: 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 810d5e5 commit cd317beab881542ce3cd426cd2a2de5dd482a885
Showing with 1 addition and 1 deletion.
  1. +1 −1 soc/arm/nxp_kinetis/kl2x/soc.c
@@ -100,7 +100,7 @@ static ALWAYS_INLINE void clkInit(void)
#endif
#if CONFIG_USB_KINETIS
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcPll0,
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
DT_ARM_CORTEX_M0PLUS_0_CLOCK_FREQUENCY);
#endif
}

0 comments on commit cd317be

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