From e10432afcef22d098a929411c8edc833695e95ea Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Mon, 24 Feb 2025 15:41:57 +0000 Subject: [PATCH] soc: imxrt: drop the ADC_MCUX_12B1MSPS_SAR overrides Drop the override conditions to ADC_MCUX_12B1MSPS_SAR for imxrt, the current one causes the driver to be built when it does not have to and are not needed anyway, and drop the HAS_MCUX_12B1MSPS_SAR option entirely as it's not needed anymore. Tested with: west build -p -b teensy40 tests/lib/devicetree/api_ext Signed-off-by: Fabio Baltieri --- modules/Kconfig.mcux | 5 ----- soc/nxp/imxrt/Kconfig.defconfig | 4 ---- soc/nxp/imxrt/imxrt10xx/Kconfig | 1 - 3 files changed, 10 deletions(-) diff --git a/modules/Kconfig.mcux b/modules/Kconfig.mcux index f6d7df3ab4f..c5ce190b3de 100644 --- a/modules/Kconfig.mcux +++ b/modules/Kconfig.mcux @@ -18,11 +18,6 @@ config MCUX_CORE_SUFFIX String describing the core identifer used by MCUX SDK when using dual core parts -config HAS_MCUX_12B1MSPS_SAR - bool - help - Set if the 12B1MSPS SAR ADC module is present in the SoC. - config HAS_MCUX_ADC12 bool help diff --git a/soc/nxp/imxrt/Kconfig.defconfig b/soc/nxp/imxrt/Kconfig.defconfig index f82e9e126f0..0ab3d3a1249 100644 --- a/soc/nxp/imxrt/Kconfig.defconfig +++ b/soc/nxp/imxrt/Kconfig.defconfig @@ -13,10 +13,6 @@ config ROM_START_OFFSET default 0x400 if BOOTLOADER_MCUBOOT default 0x2000 if BOOT_FLEXSPI_NOR || BOOT_SEMC_NOR -config ADC_MCUX_12B1MSPS_SAR - default y if HAS_MCUX_12B1MSPS_SAR - depends on ADC - config LOG_BACKEND_SWO_FREQ_HZ default 7500000 depends on LOG_BACKEND_SWO diff --git a/soc/nxp/imxrt/imxrt10xx/Kconfig b/soc/nxp/imxrt/imxrt10xx/Kconfig index 4a9508777ab..13dc3063acf 100644 --- a/soc/nxp/imxrt/imxrt10xx/Kconfig +++ b/soc/nxp/imxrt/imxrt10xx/Kconfig @@ -11,7 +11,6 @@ config SOC_SERIES_IMXRT10XX select CLOCK_CONTROL select HAS_MCUX select HAS_MCUX_CACHE - select HAS_MCUX_12B1MSPS_SAR if !SOC_MIMXRT1042 select HAS_MCUX_CCM if !SOC_MIMXRT1042 select HAS_MCUX_FLEXSPI select HAS_MCUX_IGPIO