]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: puma-haikou: default to SPI bus 1 for SPI-flash
authorHugh Cole-Baker <sigmaris@gmail.com>
Sun, 22 Nov 2020 13:03:46 +0000 (13:03 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 21 Jan 2021 03:53:36 +0000 (11:53 +0800)
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. Formerly the alias spi1
pointed to &spi5, use an alias spi5 for this instead.

Signed-off-by: Hugh Cole-Baker <sigmaris@gmail.com>
Suggested-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
arch/arm/dts/rk3399-puma-haikou-u-boot.dtsi
configs/puma-rk3399_defconfig

index 29846c4b001dc0d692ab6ee2a335f05857d32898..e7a1aea3a56fd0b18fc8986aa6d946352ed57738 100644 (file)
@@ -28,8 +28,7 @@
        };
 
        aliases {
-               spi0 = &spi1;
-               spi1 = &spi5;
+               spi5 = &spi5;
        };
 
        /*
index 60178e3754c32b00d9696cc9750bb03bed16fff0..0f15936c2d6afb5354b00fa67765adf73801f233 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_SYS_MMC_ENV_DEV=1
+CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_ROCKCHIP_GPIO=y
 CONFIG_SYS_I2C_ROCKCHIP=y
 CONFIG_MISC=y
@@ -53,6 +54,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