diff options
author | Andre Przywara <andre.przywara@arm.com> | 2021-04-16 11:52:27 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2021-05-31 00:39:54 +0100 |
commit | 6785434709b74b9a821a21e7228a4c9eb4843095 (patch) | |
tree | 375b5443ac21bb81b7d21b8be2fd97d64391a7ff | |
parent | ffd810487ec2ff6095edf3f3d058d7ed6eb85ff3 (diff) | |
download | u-boot-6785434709b74b9a821a21e7228a4c9eb4843095.zip u-boot-6785434709b74b9a821a21e7228a4c9eb4843095.tar.gz u-boot-6785434709b74b9a821a21e7228a4c9eb4843095.tar.bz2 |
sunxi: Bring back SD card as MMC device 0
Commit 2243d19e5618 ("mmc: mmc-uclass: Use dev_seq() to read aliases
node's index") now actually enforces U-Boot's device enumeration policy,
where explicitly named devices come first, then any other non-named
devices follow, without filling gaps.
For quite a while we have had an "mmc1 = &mmc2;" alias in our
sunxi-u-boot.dtsi, which now leads to the problem that the SD card
(which was always mmc device 0) now gets to be number 2.
This breaks quite some boot scripts, including our own distro boot
commands, and some other features looking at $mmc_bootdev, also
fastboot.
Just add an explicit mmc0 alias in the very same file to fix this and
restore the old behaviour.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reported-by: Samuel Holland <samuel@sholland.org>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
-rw-r--r-- | arch/arm/dts/sunxi-u-boot.dtsi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi index a4227a3..06da009 100644 --- a/arch/arm/dts/sunxi-u-boot.dtsi +++ b/arch/arm/dts/sunxi-u-boot.dtsi @@ -12,6 +12,7 @@ / { aliases { + mmc0 = &mmc0; mmc1 = &mmc2; }; |