summaryrefslogtreecommitdiff
path: root/drivers/grove/Kconfig
diff options
context:
space:
mode:
authorBogdan Davidoaia <bogdan.m.davidoaia@intel.com>2016-05-06 16:33:21 +0300
committerAnas Nashif <nashif@linux.intel.com>2016-05-12 12:11:04 +0000
commit62c7a1338a042e757c57b44a7c9162a30c7772b0 (patch)
tree740f319b62b161c576ff137952fe8ae8ddd6ee59 /drivers/grove/Kconfig
parent059d97839e033b1541e8c961e3527f92fc3ee203 (diff)
grove: add light sensor
Add driver for the Grove Light Sensor which detects changes in ambient light. Sensor reference page: http://www.seeedstudio.com/wiki/Grove_-_Light_Sensor Origin: Original Change-Id: I88ae20cc9faa8ab8f274b0bd7a114db5c1a87a91 Signed-off-by: Bogdan Davidoaia <bogdan.m.davidoaia@intel.com>
Diffstat (limited to 'drivers/grove/Kconfig')
-rw-r--r--drivers/grove/Kconfig45
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/grove/Kconfig b/drivers/grove/Kconfig
index a544b2aa4..3a99865c1 100644
--- a/drivers/grove/Kconfig
+++ b/drivers/grove/Kconfig
@@ -66,3 +66,48 @@ config GROVE_LCD_RGB_INIT_PRIORITY
Device driver initialization priority.
As the device is connected to I2C bus, its driver has
to be initialized after the I2C one.
+
+config GROVE_LIGHT_SENSOR
+ bool
+ prompt "Enable the Seeed Grove Light Sensor"
+ depends on GROVE && ADC && NEWLIB_LIBC
+ default n
+ help
+ Setting this value will enable dirver support for the Grove Light
+ Sensor.
+
+config GROVE_LIGHT_SENSOR_NAME
+ string
+ prompt "Driver name"
+ depends on GROVE_LIGHT_SENSOR
+ default "GROVE_LIGHT_SENSOR"
+ help
+ Specify the device name with which the sensor is identified.
+
+config GROVE_LIGHT_SENSOR_ADC_DEV_NAME
+ string
+ prompt "ADC where Grove Light Sensor is connected"
+ depends on GROVE_LIGHT_SENSOR
+ default "ADC_0"
+ help
+ Specify the device name of the ADC to which the Grove Light Sensor
+ is connected.
+
+config GROVE_LIGHT_SENSOR_ADC_CHANNEL
+ int
+ prompt "ADC channel used by Grove Light Sensor"
+ depends on GROVE_LIGHT_SENSOR
+ default 10
+ help
+ Specify the channel of the ADC to which the Grove Light Sensor is
+ connected.
+
+config GROVE_LIGHT_SENSOR_INIT_PRIORITY
+ int
+ prompt "Init priority"
+ default 70
+ depends on GROVE_LIGHT_SENSOR
+ help
+ Device driver initialization priority.
+ As the device is connected to an ADC device, its driver has to be
+ initialized after the ADC device.