0be3a7604b
Update spi drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol to expose the driver and enable it by default based on devicetree. We remove 'depend on' Kconfig for symbols that would be implied by the devicetree node existing. Signed-off-by: Kumar Gala <galak@kernel.org>
21 lines
445 B
Plaintext
21 lines
445 B
Plaintext
# ESP32 SPI configuration
|
|
|
|
# Copyright (c) 2020 Espressif Systems (Shanghai) Co., Ltd.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig ESP32_SPIM
|
|
bool "ESP32 SPI Master driver"
|
|
default y
|
|
depends on DT_HAS_ESPRESSIF_ESP32_SPI_ENABLED
|
|
help
|
|
Enables support for ESP32 SPI Master driver.
|
|
|
|
if ESP32_SPIM
|
|
|
|
config SPI_ESP32_INTERRUPT
|
|
bool "ESP32 SPI interrupt mode"
|
|
help
|
|
Enables interrupt support for ESP32 SPI driver.
|
|
|
|
endif # ESP32_SPIM
|