diff options
author | Maxime Ripard | 2017-08-23 10:12:22 +0200 |
---|---|---|
committer | Maxime Ripard | 2017-10-03 19:12:06 +0200 |
commit | de86fc3859f9c9ae26faed6f9d8fc115e1329b4f (patch) | |
tree | ca874a378ccb688f362f703ac3bcdff258f8e63a /configs/A20-OLinuXino-Lime2-eMMC_defconfig | |
parent | f4c3523c98588b528601f40c0c16106379ea6eda (diff) |
sunxi: Remove the MMC index hack
The current code, if there's both an eMMC and an MMC slot available on the
board, will swap the MMC indices based on whether we booted from the eMMC
or the MMC. This way, the MMC we're supposed to boot on will always have
the index 0.
However, this causes various issues, for example when using other
components that base their behaviour on the MMC index, such as fastboot.
Let's remove that hack, and take the opposite approach. The MMC will always
have the same index, but the bootcmd will pick the same device than the one
we booted from. This is done through the introduction of the mmc_bootdev
environment variable that will be filled by the board code based on the
boot device informations we can get from the SoC.
In order to not introduce regressions, we also need to adjust the fastboot
MMC device and the environment device in order to set it to the eMMC, over
the MMC, like it used to be the case.
Tested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'configs/A20-OLinuXino-Lime2-eMMC_defconfig')
-rw-r--r-- | configs/A20-OLinuXino-Lime2-eMMC_defconfig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/configs/A20-OLinuXino-Lime2-eMMC_defconfig b/configs/A20-OLinuXino-Lime2-eMMC_defconfig index a04037ebe7c..b89c505efab 100644 --- a/configs/A20-OLinuXino-Lime2-eMMC_defconfig +++ b/configs/A20-OLinuXino-Lime2-eMMC_defconfig @@ -14,7 +14,6 @@ CONFIG_AHCI=y CONFIG_SPL=y CONFIG_SPL_I2C_SUPPORT=y CONFIG_FASTBOOT_FLASH=y -CONFIG_FASTBOOT_FLASH_MMC_DEV=0 # CONFIG_CMD_IMLS is not set CONFIG_CMD_DFU=y # CONFIG_CMD_FLASH is not set |