u-boot-brain/arch/arm/mach-sunxi
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
..
dram_timings sunxi: H6: Add DDR3-1333 timings 2019-07-16 17:13:04 +05:30
board.c sunxi: Automate loading from 128KB MMC offset 2020-01-26 19:10:16 +05:30
clock_sun4i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun6i.c sunxi: Fix pll1 clock calculation 2019-10-25 14:15:49 +05:30
clock_sun8i_a83t.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun9i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun50i_h6.c sunxi: add clock code for H6 2018-07-31 11:38:13 +05:30
clock.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu_info.c sunxi: add support for Allwinner H6 SoC 2018-07-31 11:38:13 +05:30
dram_helpers.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
dram_sun4i.c common: Move RAM-sizing functions to init.h 2020-01-24 23:06:49 +05:30
dram_sun6i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun8i_a23.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun8i_a33.c sunxi: dram_sun8i: Fix A33 memory initialization 2019-04-10 15:32:59 +05:30
dram_sun8i_a83t.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun9i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun50i_h6.c sunxi: H6: DRAM: Add support for half DQ 2019-10-25 14:15:49 +05:30
dram_sunxi_dw.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gtbus_sun9i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig phy: sun4i-usb: Add Allwinner R40 support 2020-01-24 23:06:50 +05:30
Makefile sunxi: H6: move LPDDR3 timing definition into separate file 2019-07-16 17:09:31 +05:30
p2wi.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
pinmux.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_bus.c sunxi: pmic_bus: Decrease boot time by not writing duplicate data 2018-12-07 22:24:33 +05:30
prcm.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rmr_switch.S sunxi: change RMR64's RVBAR address for H6 2018-07-31 11:38:13 +05:30
rsb.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
spl_spi_sunxi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00