soc: nxp_imx: Fix enabling ENET PLL outputs

The ENET PLL should be enabled if the SoC is the MIMXRT1021 (it used by
the ARM core) or if the ENET device is enabled.

The 500MHz clock should be enabled if the SoC is the MIMXRT1021.

The ENET clock should be enabled if the ENET device is enabled.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
Aurelien Jarno 2019-01-20 21:14:08 +01:00 committed by Maureen Helm
commit ba459d002c

View file

@ -40,7 +40,8 @@ const clock_usb_pll_config_t usb1PllConfig = {
const clock_enet_pll_config_t ethPllConfig = {
#ifdef CONFIG_SOC_MIMXRT1021
.enableClkOutput500M = true,
#else
#endif
#ifdef CONFIG_ETH_MCUX
.enableClkOutput = true,
#endif
.enableClkOutput25M = false,