
On 09/02/2019 13:14, Jagan Teki wrote:
Enable SUN4I_SPI by default for ARCH_SUNXI, so that board that would require to enable DM_SPI that eventually enable the SUN4I_SPI driver.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 15207d23c1..2fb4862c4a 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -224,6 +224,7 @@ config STM32_QSPI
config SUN4I_SPI bool "Allwinner A10/A31 SoCs SPI controller"
- default ARCH_SUNXI
I don't think that's justified, only a few boards have SPI flash, really, also it's a new driver that nobody desperately needed so far.
What about: default y if ARCH_SUNXI && SPI
That would mean to just define CONFIG_SPI=y in a defconfig to enable SPI (flash) support for a board. Similar we should add select DM_SPI if SPI select DM_SPI_FLASH if SPI to the ARCH_SUNXI stanza in arch/arm/Kconfig
Cheers, Andre.
help This enables using the SPI controller on the Allwinner A10/A31 SoCs.