zephyr/drivers/sensor/nrf5/Kconfig
Kumar Gala f0441fba58 drivers: sensor: Update drivers to use devicetree Kconfig symbol
Update sensor drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-22 02:20:18 -05:00

21 lines
528 B
Plaintext

# nRF5 temperature sensor configuration options
# Copyright (c) 2016 ARM Ltd.
# SPDX-License-Identifier: Apache-2.0
config TEMP_NRF5_FORCE_ALT
bool
depends on SOC_COMPATIBLE_NRF
help
This option can be enabled to force an alternative implementation
of the temperature sensor driver.
config TEMP_NRF5
bool "nRF5 Temperature Sensor"
default y
depends on DT_HAS_NORDIC_NRF_TEMP_ENABLED
depends on HAS_HW_NRF_TEMP
depends on MULTITHREADING || TEMP_NRF5_FORCE_ALT
help
Enable driver for nRF5 temperature sensor.