]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3399-roc-pc: default to SPI bus 1 for SPI-flash
authorHugh Cole-Baker <sigmaris@gmail.com>
Sun, 22 Nov 2020 13:03:45 +0000 (13:03 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 21 Jan 2021 03:53:25 +0000 (11:53 +0800)
SPI flash on this board is located on bus 1, default to using bus 1 for
SPI flash on both rk3399-roc-pc and -mezzanine, 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")
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
configs/roc-pc-mezzanine-rk3399_defconfig
configs/roc-pc-rk3399_defconfig

index fc155e69036e9e2aae3ff762e0fbf68959f55c1c..e3c9364e35997f17dbfd0f2e17276c35d21fdbe0 100644 (file)
@@ -7,10 +7,6 @@
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
 / {
-       aliases {
-               spi0 = &spi1;
-       };
-
        chosen {
                u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc;
        };
index ae16f3558a35197d0de2ca80f6088617a19ef33f..8aa5a155180db4734a8a54ea0e7d0cb240b609b6 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SF_DEFAULT_BUS=1
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y
index 774707b115b012ca6b378ed46739346ee9baa386..927b57685d95ac00318e615875c080733a38e4e8 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ROCKCHIP=y
+CONFIG_SF_DEFAULT_BUS=1
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_DM_ETH=y
 CONFIG_ETH_DESIGNWARE=y