1# ITE Voltage Comparator driver configuration options 2 3# Copyright (c) 2022 ITE Technology Corporation. 4# SPDX-License-Identifier: Apache-2.0 5 6config VCMP_IT8XXX2 7 bool "ITE it8xxx2 Voltage Comparator" 8 default y 9 depends on DT_HAS_ITE_IT8XXX2_VCMP_ENABLED 10 depends on SOC_IT8XXX2 && ADC_ITE_IT8XXX2 11 help 12 This option enables the ITE it8xxx2 voltage comparator, 13 it8xxx2 supports six 10-bit resolution voltage comparator 14 channels, and the input of each comparator comes from ADC pin. 15 16config VCMP_IT8XXX2_INIT_PRIORITY 17 int "ITE it8xxx2 voltage comparator device instance init priority" 18 default SENSOR_INIT_PRIORITY 19 help 20 This option sets ITE voltage comparator device instance init priority. 21 22if VCMP_IT8XXX2 23 24config VCMP_IT8XXX2_WORKQUEUE 25 bool "ITE it8xxx2 voltage comparator threshold detection uses internal work queue" 26 help 27 Threshold detection ISR utilizes system work queue for calling 28 trigger handlers; set this option to use dedicated work queue instead. 29 30if VCMP_IT8XXX2_WORKQUEUE 31 32config VCMP_IT8XXX2_WORKQUEUE_PRIORITY 33 int "ITE it8xxx2 voltage comparator threshold detection work queue priority" 34 default SYSTEM_WORKQUEUE_PRIORITY 35 help 36 This option sets internal ITE voltage comparator threshold detection 37 workqueue priority. 38 39config VCMP_IT8XXX2_WORKQUEUE_STACK_SIZE 40 int "ITE it8xxx2 voltage comparator threshold detection work queue stack size" 41 default 768 42 help 43 This option sets internal ITE voltage comparator threshold detection 44 workqueue stack size. 45 46endif # VCMP_IT8XXX2_WORKQUEUE 47 48endif # VCMP_IT8XXX2 49