[U-Boot] [PATCH 0/4] mmc: sunxi: index hack removal

Maxime Ripard maxime.ripard at free-electrons.com
Wed Aug 23 11:41:32 UTC 2017


Hi,

Here is an attempt at removing the hack in the sunxi code to switch
the MMC indices depending on the boot device.

It's based on Siarhei's suggestion to go through an environment
variable set by the code, and then having a script in our default
bootcmd to change the boot order in order to always favour the boot
device, instead of always picking the external MMC first.

Let me know what you think,
Maxime

Maxime Ripard (4):
  mmc: sunxi: fix legacy MMC initialisation
  arm: sunxi: compile spl_boot_device even for U-Boot
  sunxi: Use spl_boot_device
  sunxi: Remove the MMC index hack

 arch/arm/mach-sunxi/board.c    |  4 +---
 board/sunxi/board.c            | 26 +++++++++++---------------
 drivers/mmc/sunxi_mmc.c        |  2 +-
 include/configs/sunxi-common.h | 36 ++++++++++++++++++++++++++++++------
 4 files changed, 43 insertions(+), 25 deletions(-)

-- 
2.13.5



More information about the U-Boot mailing list