]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: sunxi: Move spl_boot_device in a separate function
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Aug 2017 08:06:30 +0000 (10:06 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 3 Oct 2017 17:12:06 +0000 (19:12 +0200)
commit8829076a5b1001ee20009528931383e912496fcd
tree91dc451bc6ac96fd4595874b67f11ca626a1b5ff
parent6ee9d7be06adb91315bf49f83a8947a558ae5494
arm: sunxi: Move spl_boot_device in a separate function

U-Boot itself might need to identify the boot device, for example to be
able to tell where to load the kernel from when several options are
possible.

Move the logic of spl_boot_device to a function that is compiled both for
the SPL and the main binary.

Tested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/include/asm/arch-sunxi/spl.h
arch/arm/mach-sunxi/board.c