summaryrefslogtreecommitdiff
path: root/arch/arm/dts
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2020-01-10 01:47:32 +0000
committerJagan Teki <jagan@amarulasolutions.com>2020-01-26 19:10:16 +0530
commit7c841d844f6d3192731603733e0d5986ce03f11c (patch)
tree9534a901024c56fb0d57ab7c2e0aa066fc590c8f /arch/arm/dts
parentee98d768930b7c8f9dffbfd06e3cec2f2cc146d9 (diff)
sunxi: Automate loading from 128KB MMC offset
Since commit 067e0b9684d4 ("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>
Diffstat (limited to 'arch/arm/dts')
0 files changed, 0 insertions, 0 deletions