]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
SPL: SPI: select SPL_SPI_FLASH_SUPPORT on SPL_SPI_SUNXI
authorAndre Przywara <andre.przywara@arm.com>
Wed, 4 Oct 2017 23:27:21 +0000 (00:27 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 25 Oct 2017 08:05:05 +0000 (10:05 +0200)
The Allwinner SPI flash SPL boot support is guarded by the SPL_SPI_SUNXI
symbol. But despite its generic name, the actual only use case for this
is to provide SPI flash support to the SPL, which requires
CONFIG_SPL_SPI_FLASH_SUPPORT to be defined.
Select this symbol from the SPL_SPI_SUNXI Kconfig definition. This
avoids doing this explicitly in the defconfig, and fixes SPI booting on
the Pine64 SoPine (and -LTS version) and the OrangePi Win board (both with
SPI flash).

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
configs/orangepi_pc2_defconfig
configs/orangepi_zero_defconfig
drivers/mtd/spi/Kconfig

index 5918e729d126a1d16e6a26753834fd90f829e639..e5fea42fa649a846e7177011d687941c6d21800e 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
-CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_MACH_SUN50I_H5=y
 CONFIG_DRAM_CLK=672
 CONFIG_DRAM_ZQ=3881977
index 1a16ed1ad6e0a59124b846e2ded49c2c4a5f90e7..5792e7a4a381b8bb324547aa818286f42b779ad5 100644 (file)
@@ -1,6 +1,5 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SUNXI=y
-CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_MACH_SUN8I_H3=y
 CONFIG_DRAM_CLK=624
 CONFIG_DRAM_ZQ=3881979
index 5700859ff27149cc1ba5d6ea99738b52200a98b3..6ba255d676bf4d62514fd82d9f3e9ab48551dd4f 100644 (file)
@@ -140,6 +140,7 @@ if SPL
 config SPL_SPI_SUNXI
        bool "Support for SPI Flash on Allwinner SoCs in SPL"
        depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUNXI_H3_H5 || MACH_SUN50I
+       select SPL_SPI_FLASH_SUPPORT
        ---help---
        Enable support for SPI Flash. This option allows SPL to read from
        sunxi SPI Flash. It uses the same method as the boot ROM, so does