Skip to content
Permalink
Browse files

soc: nxp_rt: Get system clock frequency from DTS

The SoC initialization code used timer clock frequency
as a system 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 May 29, 2019
1 parent a8b787f commit 01e2789b8cc12dcc29fa5ea7f5d79b3af25f21c4
Showing with 2 additions and 2 deletions.
  1. +2 −2 soc/arm/nxp_imx/rt/soc.c
@@ -179,9 +179,9 @@ static ALWAYS_INLINE void clkInit(void)

#if CONFIG_USB_DC_NXP_EHCI
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usb480M,
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
DT_NXP_KINETIS_USBD_0_CLOCKS_CLOCK_FREQUENCY);
CLOCK_EnableUsbhs0Clock(kCLOCK_Usb480M,
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
DT_NXP_KINETIS_USBD_0_CLOCKS_CLOCK_FREQUENCY);
USB_EhciPhyInit(kUSB_ControllerEhci0, CPU_XTAL_CLK_HZ, &usbPhyConfig);
#endif

0 comments on commit 01e2789

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