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 | |
68 int prepare_wb_code(unsigned int, unsigned int); | |
Tom Warren
2010/11/12 00:12:40
You should put protos/forward declarations in a he
yelin
2010/11/15 23:21:21
Done.
| |
69 #endif | |
70 | |
67 DECLARE_GLOBAL_DATA_PTR; | 71 DECLARE_GLOBAL_DATA_PTR; |
68 | 72 |
69 ulong monitor_flash_len; | 73 ulong monitor_flash_len; |
70 | 74 |
71 #ifdef CONFIG_HAS_DATAFLASH | 75 #ifdef CONFIG_HAS_DATAFLASH |
72 extern int AT91F_DataflashInit(void); | 76 extern int AT91F_DataflashInit(void); |
73 extern void dataflash_print_info(void); | 77 extern void dataflash_print_info(void); |
74 #endif | 78 #endif |
75 | 79 |
76 #ifndef CONFIG_IDENT_STRING | 80 #ifndef CONFIG_IDENT_STRING |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 #endif | 316 #endif |
313 if ((*init_fnc_ptr)() != 0) { | 317 if ((*init_fnc_ptr)() != 0) { |
314 hang (); | 318 hang (); |
315 } | 319 } |
316 } | 320 } |
317 | 321 |
318 #if defined(CONFIG_TEGRA2) | 322 #if defined(CONFIG_TEGRA2) |
319 /* create memory heap for tegra2 */ | 323 /* create memory heap for tegra2 */ |
320 mem_malloc_init (CONFIG_STACKBASE - CONFIG_SYS_MALLOC_LEN, | 324 mem_malloc_init (CONFIG_STACKBASE - CONFIG_SYS_MALLOC_LEN, |
321 CONFIG_SYS_MALLOC_LEN); | 325 CONFIG_SYS_MALLOC_LEN); |
326 /* preparee the WB code to LP0 location */ | |
Tom Warren
2010/11/12 00:12:40
'prepare'
yelin
2010/11/15 23:21:21
Done.
| |
327 prepare_wb_code(TEGRA_LP0_DEFAULT_ADDR, TEGRA_LP0_SIZE); | |
322 #else | 328 #else |
323 #if defined(CONFIG_STACK_BASE) | 329 #if defined(CONFIG_STACK_BASE) |
324 /* _STACK_BASE is defined in the board-specific linker script | 330 /* _STACK_BASE is defined in the board-specific linker script |
325 * Heap was assumed to be just under the start address _armboot_start. | 331 * Heap was assumed to be just under the start address _armboot_start. |
326 * Heap is carved out of stack space in start.S | 332 * Heap is carved out of stack space in start.S |
327 */ | 333 */ |
328 mem_malloc_init (_STACK_BASE - CONFIG_SYS_MALLOC_LEN, | 334 mem_malloc_init (_STACK_BASE - CONFIG_SYS_MALLOC_LEN, |
329 CONFIG_SYS_MALLOC_LEN); | 335 CONFIG_SYS_MALLOC_LEN); |
330 #else | 336 #else |
331 /* armboot_start is defined in the board-specific linker script */ | 337 /* armboot_start is defined in the board-specific linker script */ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
489 } | 495 } |
490 | 496 |
491 /* NOTREACHED - no way out of command loop except booting */ | 497 /* NOTREACHED - no way out of command loop except booting */ |
492 } | 498 } |
493 | 499 |
494 void hang (void) | 500 void hang (void) |
495 { | 501 { |
496 puts ("### ERROR ### Please RESET the board ###\n"); | 502 puts ("### ERROR ### Please RESET the board ###\n"); |
497 for (;;); | 503 for (;;); |
498 } | 504 } |
OLD | NEW |