uboot/arch
Marek Vasut bb0c63a5f3 ARM: sama5d2: Implement boot device autodetection
Implement support for saving ARM register R4 early during boot using
save_boot_params . Implement support for decoding the stored register
R4 value in spl_boot_device() to obtain boot device from which the
SoC booted. This way, the SPL will always load U-Boot from the same
device from which the SPL itself booted instead of using hard-coded
boot device.

This functionality is useful for example when booting sama5d2-xplained
from SD card, where by default the SPL would try loading the U-Boot
from eMMC and fail. This is because eMMC is on SDHCI0 (BOOT_DEVICE_MMC1),
while SD slot is on SDHCI1 (BOOT_DEVICE_MMC2) and the SPL was hard-wired
to always boot from BOOT_DEVICE_MMC1.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
2016-05-24 08:08:37 +02:00
..
arc
arm ARM: sama5d2: Implement boot device autodetection 2016-05-24 08:08:37 +02:00
avr32
blackfin
m68k Merge git://git.denx.de/u-boot-dm 2016-05-17 13:58:27 -04:00
microblaze
mips malta: Support MIPS32r6 configurations 2016-05-21 01:36:39 +02:00
nds32
nios2
openrisc
powerpc
sandbox sandbox: Add string and 16-bit I/O functions 2016-05-17 09:54:43 -06:00
sh
sparc Fix spelling of "transferred". 2016-03-22 12:16:16 -04:00
x86 dm: Rename disk uclass to ahci 2016-05-17 09:54:43 -06:00
.gitignore
Kconfig