1# LMP90xxx ADC configuration options
2
3# Copyright (c) 2019 Vestas Wind Systems A/S
4# SPDX-License-Identifier: Apache-2.0
5
6config ADC_LMP90XXX
7	bool "LMP90xxx driver"
8	default y
9	depends on DT_HAS_TI_LMP90077_ENABLED || DT_HAS_TI_LMP90078_ENABLED || \
10		   DT_HAS_TI_LMP90079_ENABLED || DT_HAS_TI_LMP90080_ENABLED || \
11		   DT_HAS_TI_LMP90097_ENABLED || DT_HAS_TI_LMP90098_ENABLED || \
12		   DT_HAS_TI_LMP90099_ENABLED || DT_HAS_TI_LMP90100_ENABLED
13	select SPI
14	select ADC_CONFIGURABLE_INPUTS
15	select CRC
16	help
17	  Enable LMP90xxx ADC driver.
18
19	  The LMP90xxx is a multi-channel, low power sensor analog
20	  frontend (AFE).
21
22if ADC_LMP90XXX
23
24config ADC_LMP90XXX_ACQUISITION_THREAD_STACK_SIZE
25	int "Stack size for the ADC data acquisition thread"
26	default 400
27	help
28	  Size of the stack used for the internal data acquisition
29	  thread.
30
31config ADC_LMP90XXX_ACQUISITION_THREAD_PRIO
32	int "Priority for the ADC data acquisition thread"
33	default 0
34	help
35	  Priority level for the internal ADC data acquisition thread.
36
37config ADC_LMP90XXX_CRC
38	bool "Use Cyclic Redundancy Check (CRC)"
39	default y
40	help
41	  Use Cyclic Redundancy Check (CRC) to verify the integrity of
42	  the data read from the LMP90xxx.
43
44config ADC_LMP90XXX_GPIO
45	bool "GPIO support"
46	depends on GPIO
47	select GPIO_LMP90XXX
48	help
49	  Enable GPIO child device support in the LMP90xxx ADC driver.
50
51	  The GPIO functionality is handled by the LMP90xxx GPIO
52	  driver.
53
54endif # ADC_LMP90XXX
55