u-boot/arch/arm/mach-at91
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
..
arm920t Change my mailaddress 2016-05-02 18:37:09 -04:00
arm926ejs spl: arm: Make sure to include all of the u_boot_list entries 2016-03-16 15:27:55 -04:00
armv7 ARM: at91: clock: complete the GCK's clock sources 2016-05-24 08:08:36 +02:00
include/mach ARM: sama5d2: Implement boot device autodetection 2016-05-24 08:08:37 +02:00
atmel_sfr.c ARM: at91: sama5d2: configure the L2 cache memory 2016-02-18 21:34:41 +01:00
bootparams_atmel.S ARM: sama5d2: Implement boot device autodetection 2016-05-24 08:08:37 +02:00
clock.c ARM: at91: clock: add PMC_PLLICPR init function 2016-02-18 21:34:41 +01:00
config.mk ARM: at91: collect SoC sources into mach-at91 2015-02-21 08:23:51 -05:00
Kconfig board: atmel: add SAMA5D2 PTC Engineering board 2016-05-24 08:08:35 +02:00
Makefile ARM: sama5d2: Implement boot device autodetection 2016-05-24 08:08:37 +02:00
matrix.c arm: at91/spl: matrix: use matrix slave id macros 2015-11-30 22:27:54 +01:00
mpddrc.c arm: at91/spl: mpddrc: use IP version to check configuration 2016-02-02 11:49:12 +01:00
phy.c ARM: cpu: at91: clean up peripheral clock code 2016-02-18 21:34:40 +01:00
sdram.c ARM: cpu: at91: clean up peripheral clock code 2016-02-18 21:34:40 +01:00
spl.c ARM: sama5d2: Implement boot device autodetection 2016-05-24 08:08:37 +02:00
spl_at91.c ARM: at91: clean up the PMC_PLLICPR init code 2016-02-18 21:34:41 +01:00
spl_atmel.c ARM: at91: sama5d2: configure the L2 cache memory 2016-02-18 21:34:41 +01:00