zephyr/drivers/adc/Kconfig.npcx
Mulin Chao a6496e056b soc: npcx: replace Nuvoton NPCX series definitions in the npcx drivers
Replace Nuvoton NPCX series definitions with new Kconfig definitions in
the npcx drivers. The benefit of this approach is that we won't touch
the npcx driver sources again during introducing a new npcx series next
time.

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2023-10-20 15:07:21 +02:00

30 lines
747 B
Plaintext

# NPCX ADC driver configuration options
# Copyright (c) 2020 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
config ADC_NPCX
bool "Nuvoton NPCX embedded controller (EC) ADC driver"
default y
depends on DT_HAS_NUVOTON_NPCX_ADC_ENABLED
help
This option enables the ADC driver for NPCX family of
processors.
Say y if you wish to use ADC channels on NPCX MCU.
if ADC_NPCX
config ADC_NPCX_CMP_V1
bool "ADC comparator version 1 support"
default y if SOC_SERIES_NPCX7 || SOC_SERIES_NPCX9
help
This option enables ADC comparator V1 support.
config ADC_NPCX_CMP_V2
bool "ADC comparator version 2 support"
default y if SOC_SERIES_NPCX4
help
This option enables ADC comparator V2 support.
endif #ADC_NPCX