2019-11-01 20:45:29 +08:00
|
|
|
# SX9500 SAR proximity sensor configuration options
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
menuconfig SX9500
|
|
|
|
bool "SX9500 I2C SAR Proximity Chip"
|
2017-09-22 02:28:16 +08:00
|
|
|
depends on I2C
|
2016-03-17 20:40:23 +08:00
|
|
|
help
|
|
|
|
Enable driver for SX9500 I2C-based SAR proximity sensor.
|
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
if SX9500
|
|
|
|
|
2016-03-17 20:40:23 +08:00
|
|
|
config SX9500_PROX_CHANNEL
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Proximity channel to use"
|
2016-03-17 20:40:23 +08:00
|
|
|
default 3
|
|
|
|
help
|
|
|
|
The SX9500 offers 4 separate proximity channels. Choose which one
|
|
|
|
you are using. Valid numbers are 0 to 3.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "SX9500 trigger mode"
|
2016-11-10 23:05:53 +08:00
|
|
|
default SX9500_TRIGGER_GLOBAL_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
config SX9500_TRIGGER_NONE
|
|
|
|
bool "No trigger"
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config SX9500_TRIGGER_GLOBAL_THREAD
|
2016-11-05 03:47:32 +08:00
|
|
|
depends on GPIO
|
2016-03-17 20:40:23 +08:00
|
|
|
select SX9500_TRIGGER
|
2016-11-10 23:05:53 +08:00
|
|
|
bool "Use global thread"
|
2016-03-17 20:40:23 +08:00
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config SX9500_TRIGGER_OWN_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
depends on GPIO
|
|
|
|
select SX9500_TRIGGER
|
2016-11-10 23:05:53 +08:00
|
|
|
bool "Use own thread"
|
2016-03-17 20:40:23 +08:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SX9500_TRIGGER
|
|
|
|
bool
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config SX9500_THREAD_STACK_SIZE
|
|
|
|
int "Sensor delayed work thread stack size"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on SX9500_TRIGGER_OWN_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
default 1024
|
|
|
|
|
2016-11-10 23:05:53 +08:00
|
|
|
config SX9500_THREAD_PRIORITY
|
|
|
|
int "Thread priority"
|
2018-09-13 06:23:26 +08:00
|
|
|
depends on SX9500_TRIGGER_OWN_THREAD
|
2016-03-17 20:40:23 +08:00
|
|
|
default 10
|
2018-09-13 06:23:26 +08:00
|
|
|
|
|
|
|
endif # SX9500
|