X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Fm68k%2Flib%2Fboard.c;h=b9ccb6405995baf7947066cb29e03c91c8b11229;hb=e2a53458a7ab375233048e922c4adf494866a78f;hp=7867ba54b7132cc60d86e63f34e8d95e937c3ccf;hpb=eddf52b593c6c5dfa1c0ce51a6656e3635175feb;p=karo-tx-uboot.git diff --git a/arch/m68k/lib/board.c b/arch/m68k/lib/board.c index 7867ba54b7..b9ccb64059 100644 --- a/arch/m68k/lib/board.c +++ b/arch/m68k/lib/board.c @@ -76,9 +76,7 @@ static char *failed = "*** failed ***\n"; #include extern ulong __init_end; -extern ulong _end; - -extern void timer_init(void); +extern ulong __bss_end__; #if defined(CONFIG_WATCHDOG) # define INIT_FUNC_WATCHDOG_INIT watchdog_init, @@ -252,7 +250,7 @@ board_init_f (ulong bootflag) * - monitor code * - board info struct */ - len = (ulong)&_end - CONFIG_SYS_MONITOR_BASE; + len = (ulong)&__bss_end__ - CONFIG_SYS_MONITOR_BASE; addr = CONFIG_SYS_SDRAM_BASE + gd->ram_size; @@ -277,9 +275,13 @@ board_init_f (ulong bootflag) debug ("Top of RAM usable for U-Boot at: %08lx\n", addr); #ifdef CONFIG_LCD +#ifdef CONFIG_FB_ADDR + gd->fb_base = CONFIG_FB_ADDR; +#else /* reserve memory for LCD display (always full pages) */ addr = lcd_setmem (addr); gd->fb_base = addr; +#endif /* CONFIG_FB_ADDR */ #endif /* CONFIG_LCD */ /* @@ -570,8 +572,6 @@ void board_init_r (gd_t *id, ulong dest_addr) udelay (20); - set_timer (0); - /* Insert function pointers now that we have relocated the code */ /* Initialize from environment */ @@ -606,11 +606,9 @@ void board_init_r (gd_t *id, ulong dest_addr) #if defined(FEC_ENET) eth_init(bd); #endif -#if defined(CONFIG_NET_MULTI) puts ("Net: "); eth_initialize (bd); #endif -#endif #ifdef CONFIG_POST post_run (NULL, POST_RAM | post_bootmode_get(0));