]> git.baikalelectronics.ru Git - uboot.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)
commitb8d8b12736ea6c2a21a16c8ee9c12b2d819a83fd
tree91dc451bc6ac96fd4595874b67f11ca626a1b5ff
parent6aea875051ddfc8ba96b345866a7abe1d3a56a12
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