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> |
||
---|---|---|
.. | ||
at91_common.h | ||
at91_dbu.h | ||
at91_eefc.h | ||
at91_emac.h | ||
at91_gpbr.h | ||
at91_matrix.h | ||
at91_mc.h | ||
at91_pdc.h | ||
at91_pio.h | ||
at91_pit.h | ||
at91_pmc.h | ||
at91_rstc.h | ||
at91_rtt.h | ||
at91_spi.h | ||
at91_st.h | ||
at91_tc.h | ||
at91_wdt.h | ||
at91rm9200.h | ||
at91sam9_matrix.h | ||
at91sam9_sdramc.h | ||
at91sam9_smc.h | ||
at91sam9g45.h | ||
at91sam9g45_matrix.h | ||
at91sam9rl.h | ||
at91sam9rl_matrix.h | ||
at91sam9x5.h | ||
at91sam9x5_matrix.h | ||
at91sam9260.h | ||
at91sam9260_matrix.h | ||
at91sam9261.h | ||
at91sam9261_matrix.h | ||
at91sam9263.h | ||
at91sam9263_matrix.h | ||
atmel_mpddrc.h | ||
atmel_pio4.h | ||
atmel_sdhci.h | ||
atmel_serial.h | ||
atmel_usba_udc.h | ||
clk.h | ||
gpio.h | ||
hardware.h | ||
sama5_matrix.h | ||
sama5_sfr.h | ||
sama5d2.h | ||
sama5d3.h | ||
sama5d3_smc.h | ||
sama5d4.h |