clk: k6x: Modify clock_init to enable external RMII clock source

This change enables the RMII external clock source at the clock
initialization function.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
Lukasz Majewski 2020-04-03 17:46:37 +02:00 committed by Maureen Helm
commit a341d4cd43

View file

@ -104,6 +104,9 @@ static ALWAYS_INLINE void clock_init(void)
#if CONFIG_ETH_MCUX #if CONFIG_ETH_MCUX
CLOCK_SetEnetTime0Clock(TIMESRC_OSCERCLK); CLOCK_SetEnetTime0Clock(TIMESRC_OSCERCLK);
#endif #endif
#if CONFIG_ETH_MCUX_RMII_EXT_CLK
CLOCK_SetRmii0Clock(1);
#endif
#if CONFIG_USB_KINETIS #if CONFIG_USB_KINETIS
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcPll0, CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcPll0,
DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency)); DT_PROP(DT_PATH(cpus, cpu_0), clock_frequency));