Skip to content
Permalink
Browse files

soc: k6x: 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 6dca31d commit 810d5e540bee50a56c3822700307ffe607151ca6
Showing with 1 addition and 1 deletion.
  1. +1 −1 soc/arm/nxp_kinetis/k6x/soc.c
@@ -138,7 +138,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_M4F_0_CLOCK_FREQUENCY);
#endif
}

0 comments on commit 810d5e5

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