3 * Graeme Russ, <graeme.russ@gmail.com>
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25 #include <stdio_dev.h>
31 #include <status_led.h>
32 #include <asm/u-boot-x86.h>
34 #include <asm/init_helpers.h>
36 DECLARE_GLOBAL_DATA_PTR;
38 /************************************************************************
40 ************************************************************************
41 * Some of this code should be moved into the core functions,
42 * or dropped completely,
43 * but let's get it working (again) first...
46 int display_banner(void)
48 printf("\n\n%s\n\n", version_string);
53 int display_dram_config(void)
57 puts("DRAM Configuration:\n");
59 for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
60 printf("Bank #%d: %08lx ", i, gd->bd->bi_dram[i].start);
61 print_size(gd->bd->bi_dram[i].size, "\n");
67 int init_baudrate_f(void)
69 gd->baudrate = getenv_ulong("baudrate", 10, CONFIG_BAUDRATE);
73 int mem_malloc_init_r(void)
75 mem_malloc_init(((gd->relocaddr - CONFIG_SYS_MALLOC_LEN)+3)&~3,
76 CONFIG_SYS_MALLOC_LEN);
83 int init_bd_struct_r(void)
86 memset(gd->bd, 0, sizeof(bd_t));
91 #ifndef CONFIG_SYS_NO_FLASH
92 int flash_init_r(void)
98 /* configure available FLASH banks */
101 print_size(size, "\n");
107 int init_ip_address_r(void)
110 bd_data.bi_ip_addr = getenv_IPaddr("ipaddr");
115 #ifdef CONFIG_STATUS_LED
116 int status_led_set_r(void)
118 status_led_set(STATUS_LED_BOOT, STATUS_LED_BLINKING);
124 int set_bootfile_r(void)
128 s = getenv("bootfile");
131 copy_filename(BootFile, s, sizeof(BootFile));
136 int set_load_addr_r(void)
138 /* Initialize from environment */
139 load_addr = getenv_ulong("loadaddr", 16, load_addr);