summaryrefslogtreecommitdiff
path: root/lib_arm
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-10-12 23:56:33 +0200
committerWolfgang Denk <wd@denx.de>2008-10-12 23:56:33 +0200
commitdf4a0796e86662536df2387ddcf969c2a704bcc2 (patch)
treedc8835b75a1a2990db79ebf493e50b3451afd3d9 /lib_arm
parent1e841086df55d6b8f2efcf0e5dfb5fc52a0c7bbe (diff)
parent22a871a4644d3c7f6aa1ef77ae969d775752f6fa (diff)
downloadu-boot-imx-df4a0796e86662536df2387ddcf969c2a704bcc2.zip
u-boot-imx-df4a0796e86662536df2387ddcf969c2a704bcc2.tar.gz
u-boot-imx-df4a0796e86662536df2387ddcf969c2a704bcc2.tar.bz2
Merge branch 'master' of ssh://10.10.0.7/home/wd/git/u-boot/master
Diffstat (limited to 'lib_arm')
-rw-r--r--lib_arm/board.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c
index 5ade882..f02fdc8 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -220,18 +220,6 @@ static int init_func_i2c (void)
}
#endif
-#ifdef CONFIG_SKIP_RELOCATE_UBOOT
-/*
- * This routine sets the relocation done flag, because even if
- * relocation is skipped, the flag is used by other generic code.
- */
-static int reloc_init(void)
-{
- gd->flags |= GD_FLG_RELOC;
- return 0;
-}
-#endif
-
/*
* Breathe some life into the board...
*
@@ -261,11 +249,6 @@ int print_cpuinfo (void); /* test-only */
init_fnc_t *init_sequence[] = {
cpu_init, /* basic cpu dependent setup */
-#if defined(CONFIG_SKIP_RELOCATE_UBOOT)
- reloc_init, /* Set the relocation done flag, must
- do this AFTER cpu_init(), but as soon
- as possible */
-#endif
board_init, /* basic board dependent setup */
interrupt_init, /* set up exceptions */
env_init, /* initialize environment */
@@ -307,6 +290,8 @@ void start_armboot (void)
gd->bd = (bd_t*)((char*)gd - sizeof(bd_t));
memset (gd->bd, 0, sizeof (bd_t));
+ gd->flags |= GD_FLG_RELOC;
+
monitor_flash_len = _bss_start - _armboot_start;
for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {