OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2009, Code Aurora Forum. All rights reserved. | 2 * Copyright (c) 2009, Code Aurora Forum. All rights reserved. |
3 * | 3 * |
4 * (C) Copyright 2002-2006 | 4 * (C) Copyright 2002-2006 |
5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | 5 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
6 * | 6 * |
7 * (C) Copyright 2002 | 7 * (C) Copyright 2002 |
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> | 8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
9 * Marius Groeger <mgroeger@sysgo.de> | 9 * Marius Groeger <mgroeger@sysgo.de> |
10 * | 10 * |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include <miiphy.h> | 57 #include <miiphy.h> |
58 #endif | 58 #endif |
59 | 59 |
60 #ifdef CONFIG_DRIVER_SMC91111 | 60 #ifdef CONFIG_DRIVER_SMC91111 |
61 #include "../drivers/net/smc91111.h" | 61 #include "../drivers/net/smc91111.h" |
62 #endif | 62 #endif |
63 #ifdef CONFIG_DRIVER_LAN91C96 | 63 #ifdef CONFIG_DRIVER_LAN91C96 |
64 #include "../drivers/net/lan91c96.h" | 64 #include "../drivers/net/lan91c96.h" |
65 #endif | 65 #endif |
66 | 66 |
| 67 #ifdef CONFIG_TEGRA2_LP0 |
| 68 /* to get prototype of prepare_wb_code */ |
| 69 #include <asm/arch/warmboot.h> |
| 70 #endif |
| 71 |
67 DECLARE_GLOBAL_DATA_PTR; | 72 DECLARE_GLOBAL_DATA_PTR; |
68 | 73 |
69 ulong monitor_flash_len; | 74 ulong monitor_flash_len; |
70 | 75 |
71 #ifdef CONFIG_HAS_DATAFLASH | 76 #ifdef CONFIG_HAS_DATAFLASH |
72 extern int AT91F_DataflashInit(void); | 77 extern int AT91F_DataflashInit(void); |
73 extern void dataflash_print_info(void); | 78 extern void dataflash_print_info(void); |
74 #endif | 79 #endif |
75 | 80 |
76 #ifndef CONFIG_IDENT_STRING | 81 #ifndef CONFIG_IDENT_STRING |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 #endif | 317 #endif |
313 if ((*init_fnc_ptr)() != 0) { | 318 if ((*init_fnc_ptr)() != 0) { |
314 hang (); | 319 hang (); |
315 } | 320 } |
316 } | 321 } |
317 | 322 |
318 #if defined(CONFIG_TEGRA2) | 323 #if defined(CONFIG_TEGRA2) |
319 /* create memory heap for tegra2 */ | 324 /* create memory heap for tegra2 */ |
320 mem_malloc_init (CONFIG_STACKBASE - CONFIG_SYS_MALLOC_LEN, | 325 mem_malloc_init (CONFIG_STACKBASE - CONFIG_SYS_MALLOC_LEN, |
321 CONFIG_SYS_MALLOC_LEN); | 326 CONFIG_SYS_MALLOC_LEN); |
| 327 #if defined(CONFIG_TEGRA2_LP0) |
| 328 /* prepare the WB code to LP0 location */ |
| 329 prepare_wb_code(TEGRA_LP0_DEFAULT_ADDR, TEGRA_LP0_SIZE); |
| 330 #endif |
322 #else | 331 #else |
323 #if defined(CONFIG_STACK_BASE) | 332 #if defined(CONFIG_STACK_BASE) |
324 /* _STACK_BASE is defined in the board-specific linker script | 333 /* _STACK_BASE is defined in the board-specific linker script |
325 * Heap was assumed to be just under the start address _armboot_start. | 334 * Heap was assumed to be just under the start address _armboot_start. |
326 * Heap is carved out of stack space in start.S | 335 * Heap is carved out of stack space in start.S |
327 */ | 336 */ |
328 mem_malloc_init (_STACK_BASE - CONFIG_SYS_MALLOC_LEN, | 337 mem_malloc_init (_STACK_BASE - CONFIG_SYS_MALLOC_LEN, |
329 CONFIG_SYS_MALLOC_LEN); | 338 CONFIG_SYS_MALLOC_LEN); |
330 #else | 339 #else |
331 /* armboot_start is defined in the board-specific linker script */ | 340 /* armboot_start is defined in the board-specific linker script */ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 } | 498 } |
490 | 499 |
491 /* NOTREACHED - no way out of command loop except booting */ | 500 /* NOTREACHED - no way out of command loop except booting */ |
492 } | 501 } |
493 | 502 |
494 void hang (void) | 503 void hang (void) |
495 { | 504 { |
496 puts ("### ERROR ### Please RESET the board ###\n"); | 505 puts ("### ERROR ### Please RESET the board ###\n"); |
497 for (;;); | 506 for (;;); |
498 } | 507 } |
OLD | NEW |