u-boot-brain/arch
Andre Przywara 7c841d844f sunxi: Automate loading from 128KB MMC offset
Since commit 067e0b9684 ("sunxi: Allow booting from 128KB SD/eMMC offset")
we support having the SPL loaded from either the traditional 8KB SD
card/eMMC offset, or from the alternative location at 128KB. However the
sector to find the U-Boot image was still hard-coded at compile time,
and had to be adjusted for one of the two choices.

Since we can actually override the function to return the sector offset,
we can just check the boot source byte there to select the proper offset
based on from where the SPL was loaded.

This allows the very same binary image to be loaded from either 128KB or
8KB, with the U-Boot proper image always being located just behind the SPL.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
2020-01-26 19:10:16 +05:30
..
arc common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
arm sunxi: Automate loading from 128KB MMC offset 2020-01-26 19:10:16 +05:30
m68k common: Move clock functions into a new file 2020-01-24 23:06:48 +05:30
microblaze common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
mips common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
nds32 common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
nios2 common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
powerpc common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
riscv common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
sandbox common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
sh common: Move reset_cpu() to the CPU header 2020-01-24 23:06:49 +05:30
x86 common: Move hang() to the same header as panic() 2020-01-24 23:06:49 +05:30
xtensa common: Move relocate_code() to init.h 2020-01-24 23:06:48 +05:30
.gitignore
Kconfig x86: Enable pinctrl in SPL and TPL 2019-12-15 11:44:24 +08:00