]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: pinebook-pro: default to SPI bus 1 for SPI-flash
authorHugh Cole-Baker <sigmaris@gmail.com>
Sun, 22 Nov 2020 13:03:44 +0000 (13:03 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 8 Jan 2021 13:40:43 +0000 (08:40 -0500)
SPI flash on this machine is located on bus 1, default to using bus 1
for SPI flash and stop aliasing it to bus 0.

Signed-off-by: Hugh Cole-Baker <sigmaris@gmail.com>
Suggested-by: Simon Glass <sjg@chromium.org>
Fixes: c4cea2bb ("rockchip: Enable building a SPI ROM image on bob")
arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi
configs/pinebook-pro-rk3399_defconfig

index ded7db0aeff14e4bc6673d951d9f4fbbb2ca64bc..ee3b98698e68eba5f89d6a6875ca85f5db2159aa 100644 (file)
@@ -7,10 +7,6 @@
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
 / {
-       aliases {
-               spi0 = &spi1;
-       };
-
        chosen {
                u-boot,spl-boot-order = "same-as-spl", &sdhci, &spiflash, &sdmmc;
        };
index 8fbd7280ace9e10f95724c3963156e5685fa8b2b..a471c3e06a5d1a5a6e98193cbbdd8e8439aed2d6 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_DM_KEYBOARD=y
@@ -49,6 +50,7 @@ CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SF_DEFAULT_BUS=1
 CONFIG_SF_DEFAULT_SPEED=20000000
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y