Making a reference to the common work queue code should not necessarily drag in the system workqueue, since it is possible to use a workqueue that is not the system workqueue. This is done by moving the system workqueue into its own code module. Moving the system workqueue to its own code module allows removing the NANO_WORKQUEUE and SYSTEM_WORKQUEUE kconfig options, and compiling the common workqueue code and system workqueue all the time. They are only linked in the final image if a reference to them exist, same as the other kernel modules. Change-Id: I6f48d2542bda24f4702e7c2e317818dd082b3c11 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
123 lines
3.0 KiB
Plaintext
123 lines
3.0 KiB
Plaintext
# Kconfig - TMP007 infrared thermopile sensor configuration options
|
|
|
|
#
|
|
# Copyright (c) 2016 Intel Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
menuconfig TMP007
|
|
bool
|
|
prompt "TMP007 Infrared Thermopile Sensor"
|
|
depends on SENSOR && I2C
|
|
default n
|
|
help
|
|
Enable driver for TMP007 infrared thermopile sensors.
|
|
|
|
config TMP007_NAME
|
|
string
|
|
prompt "Driver name"
|
|
default "TMP007"
|
|
depends on TMP007
|
|
help
|
|
Device name with which the TMP007 sensor is identified.
|
|
|
|
config TMP007_I2C_ADDR
|
|
hex
|
|
prompt "I2C address for TMP006 Sensor"
|
|
depends on TMP007
|
|
default "0x40"
|
|
help
|
|
I2C address of the TMP007 sensor.
|
|
|
|
0x40: A0 connected GND and A1 connected to GND.
|
|
0x41: A0 connected VDD and A1 connected to GND.
|
|
0x42: A0 connected SDA and A1 connected to GND.
|
|
0x43: A0 connected SCL and A1 connected to GND.
|
|
0x44: A0 connected GND and A1 connected to VDD.
|
|
0x45: A0 connected VDD and A1 connected to VDD.
|
|
0x46: A0 connected SDA and A1 connected to VDD.
|
|
0x47: A0 connected SCL and A1 connected to VDD.
|
|
|
|
config TMP007_I2C_MASTER_DEV_NAME
|
|
string
|
|
prompt "I2C master where TMP007 is connected"
|
|
depends on TMP007
|
|
default "I2C_0"
|
|
help
|
|
Specify the device name of the I2C master device to which the
|
|
TMP007 chip is connected.
|
|
|
|
choice
|
|
prompt "Trigger mode"
|
|
depends on TMP007
|
|
default TMP007_TRIGGER_NONE
|
|
help
|
|
Specify the type of triggering to be used by the driver.
|
|
|
|
config TMP007_TRIGGER_NONE
|
|
bool
|
|
prompt "No trigger"
|
|
|
|
config TMP007_TRIGGER_GLOBAL_FIBER
|
|
bool
|
|
prompt "Use global fiber"
|
|
depends on GPIO
|
|
select TMP007_TRIGGER
|
|
|
|
config TMP007_TRIGGER_OWN_FIBER
|
|
bool
|
|
prompt "Use own fiber"
|
|
depends on GPIO
|
|
select TMP007_TRIGGER
|
|
|
|
endchoice
|
|
|
|
config TMP007_TRIGGER
|
|
bool
|
|
depends on TMP007
|
|
|
|
config TMP007_GPIO_DEV_NAME
|
|
string
|
|
prompt "GPIO device"
|
|
default "GPIO_0"
|
|
depends on TMP007 && TMP007_TRIGGER
|
|
help
|
|
The device name of the GPIO device to which the TMP007 interrupt
|
|
(alert) pin is connected.
|
|
|
|
config TMP007_GPIO_PIN_NUM
|
|
int
|
|
prompt "Interrupt GPIO pin number"
|
|
default 0
|
|
depends on TMP007 && TMP007_TRIGGER
|
|
help
|
|
The number of the GPIO pin on which the interrupt signal from the
|
|
TMP007 chip will be received.
|
|
|
|
config TMP007_FIBER_PRIORITY
|
|
int
|
|
prompt "Fiber priority"
|
|
depends on TMP007 && TMP007_TRIGGER_OWN_FIBER
|
|
default 10
|
|
help
|
|
Priority of fiber used by the driver to handle interrupts.
|
|
|
|
config TMP007_FIBER_STACK_SIZE
|
|
int
|
|
prompt "Fiber stack size"
|
|
depends on TMP007 && TMP007_TRIGGER_OWN_FIBER
|
|
default 1024
|
|
help
|
|
Stack size of fiber used by the driver to handle interrupts.
|