Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: arch/arm/lib/board.c

Issue 4841001: Tegra2: implement Warmboot code and lp0_vec (Closed) Base URL: http://git.chromium.org/git/u-boot-next.git@chromeos-v2010.09
Patch Set: Add GPL headers & fix some 80-column issues Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « arch/arm/include/asm/arch-tegra2/warmboot.h ('k') | board/tegra2/common/crypto/aes_ref.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: arch/arm/lib/board.c
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
old mode 100644
new mode 100755
index a5c446e38c9bf2f157b22052d4d402ed78eefbaf..a910f8cedae00eb1cefac8e218b0407d39343f53
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -64,6 +64,11 @@
#include "../drivers/net/lan91c96.h"
#endif
+#ifdef CONFIG_TEGRA2_LP0
+/* to get prototype of prepare_wb_code */
+#include <asm/arch/warmboot.h>
+#endif
+
DECLARE_GLOBAL_DATA_PTR;
ulong monitor_flash_len;
@@ -319,6 +324,10 @@ void start_armboot (void)
/* create memory heap for tegra2 */
mem_malloc_init (CONFIG_STACKBASE - CONFIG_SYS_MALLOC_LEN,
CONFIG_SYS_MALLOC_LEN);
+#if defined(CONFIG_TEGRA2_LP0)
+ /* prepare the WB code to LP0 location */
+ prepare_wb_code(TEGRA_LP0_DEFAULT_ADDR, TEGRA_LP0_SIZE);
+#endif
#else
#if defined(CONFIG_STACK_BASE)
/* _STACK_BASE is defined in the board-specific linker script
« no previous file with comments | « arch/arm/include/asm/arch-tegra2/warmboot.h ('k') | board/tegra2/common/crypto/aes_ref.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698