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

Maxime Ripard maxime.ripard at free-electrons.com
Tue Sep 12 20:02:21 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

Changes from v1:
  - Added the various tags
  - Rebased on top of v2017.09
  - Split the spl_boot_device into a separate function instead of making
    it available in the !spl case

Maxime Ripard (3):
  arm: sunxi: Move spl_boot_device in a separate function
  sunxi: Use sunxi_get_boot_device
  sunxi: Remove the MMC index hack

 arch/arm/include/asm/arch-sunxi/spl.h      |  2 ++-
 arch/arm/mach-sunxi/board.c                | 11 +++++---
 board/sunxi/board.c                        | 26 ++++++++------------
 cmd/fastboot/Kconfig                       |  2 ++-
 configs/A20-OLinuXino-Lime2-eMMC_defconfig |  1 +-
 configs/Sinlinx_SinA33_defconfig           |  1 +-
 configs/parrot_r16_defconfig               |  1 +-
 include/configs/sunxi-common.h             | 30 ++++++++++++++++++-----
 8 files changed, 47 insertions(+), 27 deletions(-)

base-commit: c98ac3487e413c71e5d36322ef3324b21c6f60f9
-- 
git-series 0.9.1


More information about the U-Boot mailing list