1# ADC configuration options
2
3# Copyright (c) 2015 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6config ADC_MCUX_ADC12
7	bool "MCUX ADC12 driver"
8	default y
9	depends on DT_HAS_NXP_KINETIS_ADC12_ENABLED
10	select PINCTRL
11	help
12	  Enable the MCUX ADC12 driver.
13
14config ADC_MCUX_ADC16
15	bool "MCUX ADC16 driver"
16	default y
17	depends on DT_HAS_NXP_KINETIS_ADC16_ENABLED
18	select PINCTRL
19	help
20	  Enable the MCUX ADC16 driver.
21
22config ADC_MCUX_12B1MSPS_SAR
23	bool "MCUX 12B1MSPS SAR ADC driver"
24	default y
25	depends on DT_HAS_NXP_MCUX_12B1MSPS_SAR_ENABLED
26	help
27	  Enable the MCUX 12B1MSPS SAR ADC driver.
28
29config ADC_MCUX_LPADC
30	bool "MCUX LPADC driver"
31	default y
32	select ADC_CONFIGURABLE_INPUTS
33	depends on DT_HAS_NXP_LPC_LPADC_ENABLED
34	help
35	  Enable the MCUX LPADC driver.
36
37config ADC_MCUX_ETC
38	bool "MCUX ADC ETC driver"
39	depends on HAS_MCUX_ADC_ETC
40	help
41	  Enable the MCUX ADC ETC driver.
42
43if ADC_MCUX_ADC16
44
45choice
46	prompt "Clock Divide Selection"
47	default ADC_MCUX_ADC16_CLK_DIV_RATIO_1
48
49config ADC_MCUX_ADC16_CLK_DIV_RATIO_1
50	bool "Divide ratio is 1"
51
52config ADC_MCUX_ADC16_CLK_DIV_RATIO_2
53	bool "Divide ratio is 2"
54
55config ADC_MCUX_ADC16_CLK_DIV_RATIO_4
56	bool "Divide ratio is 4"
57
58config ADC_MCUX_ADC16_CLK_DIV_RATIO_8
59	bool "Divide ratio is 8"
60
61endchoice
62
63choice ADC_MCUX_ADC16_VREF
64	prompt "Voltage Reference Selection"
65	default ADC_MCUX_ADC16_VREF_DEFAULT
66
67config ADC_MCUX_ADC16_VREF_DEFAULT
68	bool "Default voltage reference pair V_REFH and V_REFL"
69
70config ADC_MCUX_ADC16_VREF_ALTERNATE
71	bool "Alternate reference pair"
72
73endchoice
74
75config ADC_MCUX_ADC16_ENABLE_EDMA
76	bool "EDMA for adc driver"
77	depends on HAS_MCUX_ADC16 && HAS_MCUX_EDMA
78	help
79	  Enable the MCUX ADC16 driver.
80
81if ADC_MCUX_ADC16_ENABLE_EDMA
82
83config ADC_MCUX_ADC16_HW_TRIGGER
84	bool "ADC HW TRIGGER"
85	default y
86	help
87	  Support HW Trigger ADC
88
89endif # ADC_MCUX_ADC16_ENABLE_EDMA
90
91endif # ADC_MCUX_ADC16
92
93
94if ADC_MCUX_LPADC
95
96config LPADC_DO_OFFSET_CALIBRATION
97	bool "Do offset calibration"
98	help
99	  Do offset calibration
100
101config LPADC_CHANNEL_COUNT
102	int "LPADC channel count"
103	default 15
104	range 1 15
105	help
106	  Amount of hardware command channels to use, reduce to save RAM.
107	  The user can reduce this value if their application uses fewer than
108	  15 ADC channels. This value corresponds to how many of the CMD
109	  registers can be configured within the ADC.
110
111
112endif # ADC_MCUX_LPADC
113