From 17f4d6bec726ccf4404b384de9aaa9aa13c0a952 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sun, 20 Jan 2019 21:14:08 +0100 Subject: [PATCH] soc: nxp_imx: fix ENET_PLL selection for MIMXRT1021 Kconfig currently emits a warning when building for a MIMXRT1021 SoC: warning: INIT_ENET_PLL (defined at soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt1052:66) has direct dependencies NET_L2_ETHERNET && SOC_MIMXRT1052 && SOC_SERIES_IMX_RT with value n, but is currently being y-selected by the following symbols: - SOC_MIMXRT1021 (defined at soc/arm/nxp_imx/rt/Kconfig.soc:12), with value y, direct dependencies (value: y), and select condition (value: y) This is due to the fact the ENET PLL is the one used by the ARM core on the MIMXRT1021 so it is always enabled, while it is declared protected by NET_L2_ETHERNET and SOC_SERIES_IMX_RT. Fix that by declaring the symbol in Kconfig.defconfig.series. Signed-off-by: Aurelien Jarno --- soc/arm/nxp_imx/rt/Kconfig.defconfig.series | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soc/arm/nxp_imx/rt/Kconfig.defconfig.series b/soc/arm/nxp_imx/rt/Kconfig.defconfig.series index c1b3bd0a6ce..e59977bfb39 100644 --- a/soc/arm/nxp_imx/rt/Kconfig.defconfig.series +++ b/soc/arm/nxp_imx/rt/Kconfig.defconfig.series @@ -18,6 +18,8 @@ config NUM_IRQS config TEXT_SECTION_OFFSET default 0x2000 if BOOT_FLEXSPI_NOR || BOOT_SEMC_NOR +config INIT_ENET_PLL + source "soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt*" endif # SOC_SERIES_IMX_RT