mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
tegra124: Implement spl_was_boot_source()
Add an implementation of this function for Tegra. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
parent
26473945ad
commit
537e967361
1 changed files with 16 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <spl.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/arch/funcmux.h>
|
||||
|
@ -29,6 +30,21 @@ enum {
|
|||
UART_COUNT = 5,
|
||||
};
|
||||
|
||||
static bool from_spl __attribute__ ((section(".data")));
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3)
|
||||
{
|
||||
from_spl = r0 != UBOOT_NOT_LOADED_FROM_SPL;
|
||||
save_boot_params_ret();
|
||||
}
|
||||
#endif
|
||||
|
||||
bool spl_was_boot_source(void)
|
||||
{
|
||||
return from_spl;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_TEGRA_SUPPORT_NON_SECURE)
|
||||
#if !defined(CONFIG_TEGRA124)
|
||||
#error tegra_cpu_is_non_secure has only been validated on Tegra124
|
||||
|
|
Loading…
Add table
Reference in a new issue