mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
7682a99826
Various files are needlessly rebuilt every time due to the version and build time changing. As version.h is not actually needed, remove the include. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Stefano Babic <sbabic@denx.de> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Tom Warren <twarren@nvidia.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Macpaul Lin <macpaul@andestech.com> Cc: Wolfgang Denk <wd@denx.de> Cc: York Sun <yorksun@freescale.com> Cc: Stefan Roese <sr@denx.de> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Simon Glass <sjg@chromium.org> Cc: Philippe Reynes <tremyfr@yahoo.fr> Cc: Eric Jarrige <eric.jarrige@armadeus.org> Cc: "David Müller" <d.mueller@elsoft.ch> Cc: Phil Edworthy <phil.edworthy@renesas.com> Cc: Robert Baldyga <r.baldyga@samsung.com> Cc: Torsten Koschorrek <koschorrek@synertronixx.de> Cc: Anatolij Gustschin <agust@denx.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Łukasz Majewski <l.majewski@samsung.com>
52 lines
946 B
C
52 lines
946 B
C
/*
|
|
* (C) Copyright 2013 - 2014 Xilinx, Inc
|
|
*
|
|
* Michal Simek <michal.simek@xilinx.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <image.h>
|
|
#include <spl.h>
|
|
#include <asm/io.h>
|
|
#include <asm/u-boot.h>
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
bool boot_linux;
|
|
|
|
u32 spl_boot_device(void)
|
|
{
|
|
return BOOT_DEVICE_NOR;
|
|
}
|
|
|
|
/* Board initialization after bss clearance */
|
|
void spl_board_init(void)
|
|
{
|
|
/* enable console uart printing */
|
|
preloader_console_init();
|
|
}
|
|
|
|
#ifdef CONFIG_SPL_OS_BOOT
|
|
void __noreturn jump_to_image_linux(void *arg)
|
|
{
|
|
debug("Entering kernel arg pointer: 0x%p\n", arg);
|
|
typedef void (*image_entry_arg_t)(char *, ulong, ulong)
|
|
__attribute__ ((noreturn));
|
|
image_entry_arg_t image_entry =
|
|
(image_entry_arg_t)spl_image.entry_point;
|
|
|
|
image_entry(NULL, 0, (ulong)arg);
|
|
}
|
|
#endif /* CONFIG_SPL_OS_BOOT */
|
|
|
|
int spl_start_uboot(void)
|
|
{
|
|
#ifdef CONFIG_SPL_OS_BOOT
|
|
if (boot_linux)
|
|
return 0;
|
|
#endif
|
|
|
|
return 1;
|
|
}
|