]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: Fix MMC boot order
authorAlex Bee <knaerzche@gmail.com>
Thu, 17 Jun 2021 09:01:12 +0000 (11:01 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 11 Aug 2021 09:44:01 +0000 (17:44 +0800)
commitf364672c00104e3fc7f9603e309e9c9c2ec6a18c
treea5f4305ed4c8f50785d0249b2b31b289c768294a
parent3e50d65b4b28c62050a336c84cec68f21397e720
rockchip: Fix MMC boot order

Basically all, i.e. rk3036.dtsi, rk3128.dtsi, rk3xxx.dtsi, rk322x.dtsi,
rk3288.dtsi, rk3308-u-boot.dtsi, rk3328-u-boot.dtsi, rk3399-u-boot.dtsi
and px30-u-boot.dtsi Rockchip SoC devicetrees which have mmc indexes
are defining eMMC as mmc0 and sdmmc as mmc1.
This means that the rule to try to boot from the SD card first is ignored,
which as per comment is what we want and is important for distros, which
rely on that.

Fix this by setting the correct mmc index, i.e. first from mmc1 (SD card),
second from mmc0 (eMMC).

Signed-off-by: Alex Bee <knaerzche@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
include/configs/rockchip-common.h