Skip to content
Snippets Groups Projects
Commit 3e10fcde authored by Cédric Schieli's avatar Cédric Schieli Committed by Tom Rini
Browse files

arm: add save_boot_params for ARM1176


Implement a hook to allow boards to save boot-time CPU state for later
use. When U-Boot is chain-loaded by another bootloader, CPU registers may
contain useful information such as system configuration information. This
feature mirrors the equivalent ARMv7 feature.

Signed-off-by: default avatarCédric Schieli <cschieli@gmail.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
parent 83dd98e0
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
#include <asm-offsets.h>
#include <config.h>
#include <linux/linkage.h>
#ifndef CONFIG_SYS_PHY_UBOOT_BASE
#define CONFIG_SYS_PHY_UBOOT_BASE CONFIG_SYS_UBOOT_BASE
......@@ -37,6 +38,11 @@
.globl reset
reset:
/* Allow the board to save important registers */
b save_boot_params
.globl save_boot_params_ret
save_boot_params_ret:
/*
* set the cpu to SVC32 mode
*/
......@@ -110,3 +116,7 @@ mmu_disable_phys:
c_runtime_cpu_setup:
mov pc, lr
WEAK(save_boot_params)
b save_boot_params_ret /* back to my caller */
ENDPROC(save_boot_params)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment