u-boot/arch/arm/mach-at91/include/mach
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
..
at91_common.h ARM: at91: sama5d2: configure the L2 cache memory 2016-02-18 21:34:41 +01:00
at91_dbu.h arm: at91: Change the Chip ID registers' addresses 2015-11-03 14:21:30 +01:00
at91_eefc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_emac.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_gpbr.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_mc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pdc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pio.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pit.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_pmc.h ARM: at91: clock: add PMC_PLLICPR init function 2016-02-18 21:34:41 +01:00
at91_rstc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_rtt.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_spi.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_st.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_tc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91_wdt.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91rm9200.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9_sdramc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9_smc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9g45.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9g45_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9rl.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9rl_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9x5.h ARM: atmel: at91sam9x5ek: enable spl support 2015-04-01 01:04:31 +02:00
at91sam9x5_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9260.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9260_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9261.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9261_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
at91sam9263.h ARM: atmel: arm9: switch to use common timer functions 2015-04-01 01:04:26 +02:00
at91sam9263_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
atmel_mpddrc.h arm: at91/spl: mpddrc: add mpddrc DDR3-SDRAM initialization 2016-02-02 11:49:12 +01:00
atmel_pio4.h gpio: atmel: Add the PIO4 driver support 2015-11-30 22:27:52 +01:00
atmel_sdhci.h mmc: atmel: Add atmel sdhci support 2015-11-03 14:21:31 +01:00
atmel_serial.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
atmel_usba_udc.h arm: atmel: Add SAMA5D2 Xplained board 2015-11-30 22:27:53 +01:00
clk.h ARM: at91: clock: complete the GCK's clock sources 2016-05-24 08:08:36 +02:00
gpio.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
hardware.h arm: atmel: Add SAMA5D2 Xplained board 2015-11-30 22:27:53 +01:00
sama5_matrix.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
sama5_sfr.h ARM: at91: sama5d2: add macro & field definitions 2016-05-24 08:08:35 +02:00
sama5d2.h ARM: sama5d2: Implement boot device autodetection 2016-05-24 08:08:37 +02:00
sama5d3.h arm: at91: Change the Chip ID registers' addresses 2015-11-03 14:21:30 +01:00
sama5d3_smc.h ARM: at91: move SoC headers to mach-at91/include/mach 2015-02-21 08:23:52 -05:00
sama5d4.h arm: at91/spl: atmel_sfr: move saic redirect to separate file 2015-11-30 22:27:55 +01:00