]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: SPL: Factor out sunxi_get_boot_source()
authorAndre Przywara <andre.przywara@arm.com>
Fri, 10 Jan 2020 01:47:31 +0000 (01:47 +0000)
committerJagan Teki <jagan@amarulasolutions.com>
Sun, 26 Jan 2020 13:39:34 +0000 (19:09 +0530)
commitee98d768930b7c8f9dffbfd06e3cec2f2cc146d9
tree4fd3fdd0b8db3e480dee2eeabaa76d39414eca72
parent533f2433ffa02eb95d1abeab531c4d36fd5e61b5
sunxi: SPL: Factor out sunxi_get_boot_source()

The Boot ROM write some boot source ID (SD card, eMMC, SPI, ...) into
a certain location in SRAM, so the SPL can easily determine where to
load U-Boot proper from.
Factor out reading this value, as it will come in handy again shortly.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-sunxi/board.c