2017-08-30 18:25:49 +08:00
|
|
|
# Kconfig - ADC configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig ADC_TI_ADC108S102
|
|
|
|
bool "TI adc108s102 chip driver"
|
|
|
|
select SPI
|
|
|
|
select ADC_0
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Enable support for TI's ADC chip adc108s102 driver.
|
2017-08-30 18:25:49 +08:00
|
|
|
|
|
|
|
if ADC_TI_ADC108S102
|
|
|
|
|
|
|
|
config ADC_TI_ADC108S102_SPI_PORT_NAME
|
|
|
|
string "Master SPI port name"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Master SPI port name through which adc108s102 chip is accessed.
|
|
|
|
|
2018-01-31 16:48:30 +08:00
|
|
|
config ADC_TI_ADC108S102_SPI_FREQ
|
|
|
|
int "Master SPI port max frequency"
|
|
|
|
default 0
|
2017-08-30 18:25:49 +08:00
|
|
|
help
|
2018-01-31 16:48:30 +08:00
|
|
|
Master SPI port frequency used to access adc108s102 chip.
|
2017-08-30 18:25:49 +08:00
|
|
|
|
|
|
|
config ADC_TI_ADC108S102_SPI_SLAVE
|
|
|
|
int "SPI slave slot"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
adc108s102 chip's SPI slave number on master SPI port.
|
|
|
|
|
|
|
|
endif # ADC_TI_ADC108S102
|