When a sensor that depends on an ADC is enabled in devicetree, enable the ADC subsystem. ADC is roughly equivalent to a bus for these sensors (the mechanism through which data is transferred), which had the same conversion applied in #48707. The same benefits apply here, namely removing the need for the following pattern in board `.kconfig` files: ``` configdefault ADC default y if SENSOR ``` Signed-off-by: Jordan Yates <jordan@embeint.com>
14 lines
349 B
Plaintext
14 lines
349 B
Plaintext
# Raspberry Pi Pico temperature sensor configuration options
|
|
|
|
# Copyright (c) 2023 TOKITA Hiroshi
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config RPI_PICO_TEMP
|
|
bool "Raspberry Pi Pico CPU Temperature Sensor"
|
|
default y
|
|
depends on DT_HAS_RASPBERRYPI_PICO_TEMP_ENABLED
|
|
select ADC
|
|
|
|
help
|
|
Enable driver for Raspberry Pi Pico CPU temperature sensor.
|