ckfwq/linux-3.0.4/drivers/spi/adc/Kconfig

113 lines
3.0 KiB
Plaintext

#
# Sensor device configuration
# add by hdw,in order to use adc
#
menuconfig SPI0_ADC
bool "Adc Hardware support"
help
GSC3280 Adc Hardware support.
if SPI0_ADC
config GSC_SPI0_ADC_CORE
tristate "support adc core"
default SPI0_ADC
help
If you say yes to this option, support will be included gsc3280
adc core.
config GSC_ADC_CORE_DEBUG
bool "adc core debugging messages"
depends on GSC_SPI0_ADC_CORE
help
Say Y here if you want the GSC3280 to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with GSC3280 and want to see more of what is going on.
comment "ADC interfaces"
config ADC_INTF_SYSFS
boolean "/sys/class/adc/adcN (sysfs)"
depends on SYSFS
default SPI0_ADC
help
Say yes here if you want to use your ADCs using sysfs interfaces,
/sys/class/adc/adc0 through /sys/.../adcN.
If unsure, say Y.
config ADC_SYS_DEBUG
bool "adc sys debugging messages"
depends on ADC_INTF_SYSFS
help
Say Y here if you want the adc sysfs dev to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with adc core and want to see more of what is going on.
config ADC_INTF_PROC
boolean "/proc/driver/adc (procfs for adc0)"
depends on PROC_FS
default SPI0_ADC
help
Say yes here if you want to use your first ADC through the proc
interface, /proc/driver/adc. Other ADCs will not be available
through that API.
If unsure, say Y.
config ADC_PROC_DEBUG
bool "adc proc debugging messages"
depends on ADC_INTF_PROC
help
Say Y here if you want the adc proc dev to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with adc core and want to see more of what is going on.
config ADC_INTF_DEV
boolean "/dev/adcN (character devices)"
default SPI0_ADC
help
Say yes here if you want to use your ADCs using the /dev
interfaces, which "udev" sets up as /dev/adc0 through
/dev/adcN.
You may want to set up a symbolic link so one of these
can be accessed as /dev/adc, which is a name
expected by "hwclock" and some other programs. Recent
versions of "udev" are known to set up the symlink for you.
If unsure, say Y.
config ADC_DEV_DEBUG
bool "adc dev debugging messages"
depends on ADC_INTF_DEV
help
Say Y here if you want the adc dev to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with adc core and want to see more of what is going on.
comment "ADC devices"
config GSC3280_ADC
tristate "support gsc3280 adc"
depends on GSC_SPI0_ADC_CORE
default SPI0_ADC
help
If you say yes to this option, support will be included gsc3280
adc convert and touchscreen.
config GSC3280_ADC_DEBUG
bool "GSC3280 adc debugging messages"
depends on GSC3280_ADC
help
Say Y here if you want the GSC3280 adc to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with GSC3280 and want to see more of what is going on.
endif