2016-10-15 20:20:00 +08:00
|
|
|
# Kconfig - MAX44009 light sensor configuration options
|
2016-07-08 09:33:29 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-07-08 09:33:29 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig MAX44009
|
|
|
|
bool
|
|
|
|
prompt "MAX44009 Light Sensor"
|
2017-09-22 02:28:16 +08:00
|
|
|
depends on I2C
|
2016-07-08 09:33:29 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable driver for MAX44009 light sensors.
|
2016-07-08 09:33:29 +08:00
|
|
|
|
|
|
|
config MAX44009_DRV_NAME
|
|
|
|
string
|
|
|
|
prompt "Driver name"
|
|
|
|
default "MAX44009"
|
|
|
|
depends on MAX44009
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Device name with which the MAX44009 light is identified.
|
2016-07-08 09:33:29 +08:00
|
|
|
|
|
|
|
|
2016-10-05 20:45:54 +08:00
|
|
|
config MAX44009_I2C_ADDR
|
|
|
|
hex
|
|
|
|
prompt "MAX44009 I2C address"
|
|
|
|
depends on MAX44009
|
|
|
|
default "0x4a"
|
2016-07-08 09:33:29 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
I2C address of the MAX44009 sensor. Possible configurations:
|
2016-07-08 09:33:29 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
0x4a: A0 connected to GND.
|
|
|
|
0x4b: A0 connected to VCC.
|
2016-07-08 09:33:29 +08:00
|
|
|
|
|
|
|
config MAX44009_I2C_DEV_NAME
|
|
|
|
string
|
|
|
|
prompt "I2C master where MAX44009 is connected"
|
|
|
|
depends on MAX44009
|
|
|
|
default "I2C_0"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Specify the device name of the I2C master device to which the
|
|
|
|
MAX44009 chip is connected.
|