drivers: spi: dw: select PINCTRL if necessary

DesignWare SPI driver may use pinctrl configuration if it's provided
for the nodes.

Signed-off-by: Ilya Tagunov <Ilya.Tagunov@synopsys.com>
This commit is contained in:
Ilya Tagunov 2024-11-27 12:02:35 +00:00 committed by Benjamin Cabé
commit bc8ef12429

View file

@ -8,6 +8,7 @@ menuconfig SPI_DW
bool "Designware SPI controller driver" bool "Designware SPI controller driver"
default y default y
depends on DT_HAS_SNPS_DESIGNWARE_SPI_ENABLED depends on DT_HAS_SNPS_DESIGNWARE_SPI_ENABLED
select PINCTRL if $(dt_compat_any_has_prop,$(DT_COMPAT_SNPS_DESIGNWARE_SPI),pinctrl-0)
help help
Enable support for Designware's SPI controllers. Enable support for Designware's SPI controllers.