Skip to content

Commit 5ae654e

Browse files
decsnyjhedberg
authored andcommitted
modules: hal_nxp: Removed unused HAS_MCUX_* configs
Remove the configs that are not actually used for anything anymore or never were, or that are redundant with other configs, and don't have any code changes outside of Kconfig to remove. Signed-off-by: Declan Snyder <[email protected]>
1 parent 5f742ac commit 5ae654e

File tree

32 files changed

+5
-508
lines changed

32 files changed

+5
-508
lines changed

drivers/adc/Kconfig.mcux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endchoice
8787

8888
config ADC_MCUX_ADC16_ENABLE_EDMA
8989
bool "EDMA for adc driver"
90-
depends on HAS_MCUX_ADC16 && HAS_MCUX_EDMA
90+
depends on DMA_MCUX_EDMA
9191
help
9292
Enable the MCUX ADC16 driver.
9393

drivers/gpio/Kconfig.mcux_igpio

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
config GPIO_MCUX_IGPIO
77
bool "MCUX IGPIO driver"
88
default y
9-
depends on HAS_MCUX_IGPIO
109
depends on DT_HAS_NXP_IMX_GPIO_ENABLED
1110
depends on HAS_MCUX
1211
select PINCTRL

drivers/sensor/nxp/nxp_kinetis_temp/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ if TEMP_KINETIS
1515

1616
config TEMP_KINETIS_RESOLUTION
1717
int "ADC resolution"
18-
default 16 if HAS_MCUX_ADC16
19-
default 12 if HAS_MCUX_ADC12
18+
default 16 if ADC_MCUX_ADC16
19+
default 12 if ADC_MCUX_ADC12
2020
help
2121
ADC resolution to use for the temperature sensor and bandgap
2222
voltage readings.

drivers/spi/Kconfig.mcux_dspi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if SPI_MCUX_DSPI
1717

1818
config DSPI_MCUX_EDMA
1919
bool "ENABLE EDMA for DSPI driver"
20-
depends on HAS_MCUX && HAS_MCUX_EDMA
20+
depends on HAS_MCUX && DMA_MCUX_EDMA
2121
help
2222
Enable DMA support for the MCUX DSPI driver.
2323

modules/hal_nxp/mcux/Kconfig.mcux

Lines changed: 0 additions & 255 deletions
Original file line numberDiff line numberDiff line change
@@ -18,137 +18,16 @@ config MCUX_CORE_SUFFIX
1818
String describing the core identifier used by MCUX SDK when using
1919
dual core parts
2020

21-
config HAS_MCUX_ADC12
22-
bool
23-
help
24-
Set if the 12-bit ADC (ADC12) module is present in the SoC.
25-
26-
config HAS_MCUX_ADC16
27-
bool
28-
help
29-
Set if the 16-bit ADC (ADC16) module is present in the SoC.
30-
31-
config HAS_MCUX_LPADC
32-
bool
33-
help
34-
Set if the LPADC module is present in the SoC.
35-
3621
config HAS_MCUX_CACHE
3722
bool
3823
help
3924
Set if the L1 or L2 cache is present in the SoC.
4025

41-
config HAS_MCUX_CCM
42-
bool
43-
help
44-
Set if the clock control module (CCM) module is present in the SoC.
45-
46-
config HAS_MCUX_CCM_REV2
47-
bool
48-
help
49-
Set if the revision 2 of clock control module (CCM) module is present in the SoC.
50-
This is present in SoC's such as RT1170
51-
52-
config HAS_MCUX_SYSCON
53-
bool
54-
help
55-
Set if the syscon module is present in the SoC.
56-
57-
config HAS_MCUX_PCC
58-
bool
59-
help
60-
Set if the peripheral clock controller module (PCC) module is
61-
present in the SoC.
62-
63-
config HAS_MCUX_ELCDIF
64-
bool
65-
help
66-
Set if the enhanced LCD interface (eLCDIF) module is present in the
67-
SoC.
68-
69-
config HAS_MCUX_MIPI_DSI
70-
bool
71-
help
72-
Set if the MIPI DSI module is present in the SoC.
73-
74-
config HAS_MCUX_ENET
75-
bool
76-
help
77-
Set if the ethernet (ENET) module is present in the SoC.
78-
79-
config HAS_MCUX_FLEXCAN
80-
bool
81-
help
82-
Set if the FlexCAN module is presents in the SoC.
83-
8426
config HAS_MCUX_FLEXSPI
8527
bool
8628
help
8729
Set if the flexible SPI (FlexSPI) module is present in the SoC.
8830

89-
config HAS_MCUX_FTFX
90-
bool
91-
help
92-
Set if the flash memory (FTFA, FTFE, or FTFL) module is present in
93-
the SoC.
94-
95-
config HAS_MCUX_FTM
96-
bool
97-
help
98-
Set if the FlexTimer (FTM) module is present in the SoC.
99-
100-
config HAS_MCUX_IAP
101-
bool
102-
help
103-
Set if the flash memory In Application Programming is present in
104-
the LPC55xxx family SoCs.
105-
106-
config HAS_MCUX_IAP_LEGACY
107-
bool
108-
help
109-
Set if the flash memory In Application Programming is present in
110-
the older LPC family SoCs (LPC54xxx, LPC11xxx).
111-
112-
config HAS_MCUX_IGPIO
113-
bool
114-
help
115-
Set if the iMX GPIO (IGPIO) module is present in the SoC.
116-
117-
config HAS_MCUX_IOMUXC
118-
bool
119-
help
120-
Set if the iMX I/O mux controller (IOMUXC) is present in the SoC.
121-
122-
config HAS_MCUX_LPI2C
123-
bool
124-
help
125-
Set if the low power I2C (LPI2C) module is present in the SoC.
126-
127-
config HAS_MCUX_LPSCI
128-
bool
129-
help
130-
Set if the low power uart (LPSCI) module is present in the SoC.
131-
132-
config HAS_MCUX_LPSPI
133-
bool
134-
help
135-
Set if the low power SPI (LPSPI) module is present in the SoC.
136-
137-
config HAS_MCUX_LPUART
138-
bool
139-
help
140-
Set if the low power uart (LPUART) module is present in the SoC.
141-
142-
config HAS_MCUX_GPT
143-
bool
144-
help
145-
Set if the general purpose timer (GPT) module is present in the SoC.
146-
147-
config HAS_MCUX_QTMR
148-
bool
149-
help
150-
Set if the quad timer (QTMR) module is present in the SoC.
151-
15231
config HAS_MCUX_GPC
15332
bool
15433
help
@@ -164,39 +43,6 @@ config HAS_MCUX_DCDC
16443
help
16544
Set if the DCDC converter module is present in the SoC.
16645

167-
config HAS_MCUX_SNVS
168-
bool
169-
help
170-
Set if the SNVS module is present on the SoC.
171-
172-
config HAS_MCUX_RNG
173-
bool
174-
help
175-
Set if the LPC specific random number generator (RNG) module is
176-
present in the SoC.
177-
178-
config HAS_MCUX_RNGA
179-
bool
180-
help
181-
Set if the random number generator accelerator (RNGA) module is
182-
present in the SoC.
183-
184-
config HAS_MCUX_RTC
185-
bool
186-
help
187-
Set if the real time clock (RTC) modules is present in the SoC.
188-
189-
config HAS_MCUX_LPC_RTC
190-
bool
191-
help
192-
Set if the LPC real time clock (RTC) modules is present in the SoC.
193-
194-
config HAS_MCUX_SCG
195-
bool
196-
help
197-
Set if the system clock generator (SCG) module is present in the
198-
SoC.
199-
20046
config HAS_MCUX_SEMC
20147
bool
20248
help
@@ -221,107 +67,21 @@ config HAS_MCUX_SRC_V2
22167
Set if version 2 of the system reset controller (SRC) module is
22268
present in the SoC.
22369

224-
config HAS_MCUX_TRNG
225-
bool
226-
help
227-
Set if the true random number generator (TRNG) module is present in
228-
the SoC.
229-
230-
config HAS_MCUX_USB_EHCI
231-
bool
232-
help
233-
Set if the USB controller EHCI module is present in the SoC.
234-
235-
config HAS_MCUX_USB_LPCIP3511
236-
bool
237-
help
238-
Set if the USB controller LPCIP3511 module is present in the SoC.
239-
240-
config HAS_MCUX_USDHC1
241-
bool
242-
help
243-
Set if the USDHC instance 1 module is present in the SoC.
244-
245-
config HAS_MCUX_USDHC2
246-
bool
247-
help
248-
Set if the USDHC2 instance 2 module is present in the SoC.
249-
250-
config HAS_MCUX_WDOG32
251-
bool
252-
help
253-
Set if the watchdog (WDOG32) module is present in the SoC.
254-
255-
config HAS_MCUX_WWDT
256-
bool
257-
help
258-
Set if the watchdog (WWDT) module is present in the SoC.
259-
260-
config HAS_MCUX_PWM
261-
bool
262-
help
263-
Set if the PWM module is present in the SoC.
264-
265-
config HAS_MCUX_SCTIMER
266-
bool
267-
help
268-
Set if the sctimer module is present in the SoC.
269-
27070
config HAS_MCUX_SMC
27171
bool
27272
help
27373
Set if the SMC module is present in the SoC.
27474

275-
config HAS_MCUX_LPTMR
276-
bool
277-
help
278-
Set if the Low Power Timer (LPTMR) module is present in the SoC.
279-
280-
config HAS_MCUX_DAC
281-
bool
282-
help
283-
Set if the Digital-to-Analog (DAC) module is present in the SoC.
284-
285-
config HAS_MCUX_DAC32
286-
bool
287-
help
288-
Set if the Digital-to-Analog (DAC32) module is present in the SoC.
289-
29075
config HAS_MCUX_TPM
29176
bool
29277
help
29378
Set if the Timer/PWM Module is present in the SoC
29479

295-
config HAS_MCUX_EDMA
296-
bool
297-
help
298-
Set if the EDMA module is present on the SoC.
299-
300-
config HAS_MCUX_LPC_DMA
301-
bool
302-
help
303-
Set if the DMA module is present on the SoC.
304-
30580
config HAS_MCUX_RDC
30681
bool
30782
help
30883
Set if the RDC module is present in the SoC.
30984

310-
config HAS_MCUX_PIT
311-
bool
312-
help
313-
Set if the PIT module is present on the SoC.
314-
315-
config HAS_MCUX_OS_TIMER
316-
bool
317-
help
318-
Set if the OS timer is used as a kernel timer on the SoC.
319-
320-
config HAS_MCUX_PWT
321-
bool
322-
help
323-
Set if the PWT module is present on the SoC.
324-
32585
config HAS_MCUX_RCM
32686
bool
32787
help
@@ -334,21 +94,6 @@ config HAS_MCUX_MCX_CMC
33494
Set if the Core Mode Controller (CMC) module is present in
33595
the SoC.
33696

337-
config HAS_MCUX_CTIMER
338-
bool
339-
help
340-
Set if the CTIMER module is present in the SoC.
341-
342-
config HAS_MCUX_I2S
343-
bool
344-
help
345-
Set if the I2S/SAI module is present on the Soc
346-
347-
config HAS_MCUX_MCAN
348-
bool
349-
help
350-
Set if the MCAN module is present on the SoC.
351-
35297
config HAS_MCUX_ADC_ETC
35398
bool
35499
help

0 commit comments

Comments
 (0)