adc: Simplify Kconfig dependencies
Remove repetitive dependencies on ADC and instead wrap everything in one big if. Jira: ZEP-1396 Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
710807fa1e
commit
615891dd1c
1 changed files with 7 additions and 8 deletions
|
@ -16,10 +16,11 @@ menuconfig ADC
|
||||||
help
|
help
|
||||||
Enable ADC (Analog to Digital Converter) driver configuration
|
Enable ADC (Analog to Digital Converter) driver configuration
|
||||||
|
|
||||||
|
if ADC
|
||||||
|
|
||||||
config SYS_LOG_ADC_LEVEL
|
config SYS_LOG_ADC_LEVEL
|
||||||
int
|
int
|
||||||
prompt "ADC drivers log level"
|
prompt "ADC drivers log level"
|
||||||
depends on ADC
|
|
||||||
default 0
|
default 0
|
||||||
range 0 4
|
range 0 4
|
||||||
help
|
help
|
||||||
|
@ -40,7 +41,6 @@ config SYS_LOG_ADC_LEVEL
|
||||||
|
|
||||||
config ADC_INIT_PRIORITY
|
config ADC_INIT_PRIORITY
|
||||||
int
|
int
|
||||||
depends on ADC
|
|
||||||
default 80
|
default 80
|
||||||
prompt "Init priority"
|
prompt "Init priority"
|
||||||
help
|
help
|
||||||
|
@ -48,18 +48,15 @@ config ADC_INIT_PRIORITY
|
||||||
|
|
||||||
config ADC_0_NAME
|
config ADC_0_NAME
|
||||||
string "ADC Driver's name"
|
string "ADC Driver's name"
|
||||||
depends on ADC
|
|
||||||
default "ADC_0"
|
default "ADC_0"
|
||||||
|
|
||||||
config ADC_0_IRQ_PRI
|
config ADC_0_IRQ_PRI
|
||||||
int
|
int
|
||||||
depends on ADC
|
|
||||||
prompt "ADC interrupt priority"
|
prompt "ADC interrupt priority"
|
||||||
default 2
|
default 2
|
||||||
|
|
||||||
menuconfig ADC_TI_ADC108S102
|
menuconfig ADC_TI_ADC108S102
|
||||||
bool "TI adc108s102 chip driver"
|
bool "TI adc108s102 chip driver"
|
||||||
depends on ADC
|
|
||||||
select SPI
|
select SPI
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
|
@ -95,7 +92,7 @@ endif # ADC_TI_ADC108S102
|
||||||
|
|
||||||
menuconfig ADC_DW
|
menuconfig ADC_DW
|
||||||
bool "ARC Designware Driver"
|
bool "ARC Designware Driver"
|
||||||
depends on ADC && ARC
|
depends on ARC
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable the driver implementation of the Designware ADC IP.
|
Enable the driver implementation of the Designware ADC IP.
|
||||||
|
@ -196,14 +193,14 @@ endif # ADC_DW
|
||||||
|
|
||||||
menuconfig ADC_QMSI
|
menuconfig ADC_QMSI
|
||||||
bool "QMSI ADC Driver"
|
bool "QMSI ADC Driver"
|
||||||
depends on QMSI && ADC
|
depends on QMSI
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable the driver implementation of the QMSI ADC IP.
|
Enable the driver implementation of the QMSI ADC IP.
|
||||||
|
|
||||||
menuconfig ADC_QMSI_SS
|
menuconfig ADC_QMSI_SS
|
||||||
bool "QMSI ADC Driver for the Sensor Subsystem"
|
bool "QMSI ADC Driver for the Sensor Subsystem"
|
||||||
depends on QMSI && ADC
|
depends on QMSI
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Enable the driver implementation of the QMSI ADC IP.
|
Enable the driver implementation of the QMSI ADC IP.
|
||||||
|
@ -280,3 +277,5 @@ config ADC_QMSI_SAMPLE_WIDTH
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif # ADC_QMSI || ADC_QMSI_SS
|
endif # ADC_QMSI || ADC_QMSI_SS
|
||||||
|
|
||||||
|
endif # ADC
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue