version 1.1, 2008/07/15 23:48:16 |
version 1.2, 2008/07/15 23:56:23 |
|
|
|
|
#include <boot.h> |
#include <boot.h> |
#include <platform.h> |
#include <platform.h> |
|
#include <uboot.h> |
|
|
/* |
/* |
* Setup boot information. |
* Setup boot information. |
|
|
bp->video.text_x = 0; |
bp->video.text_x = 0; |
bp->video.text_y = 0; |
bp->video.text_y = 0; |
|
|
/* use defaults */ |
/* |
bp->main_mem.start = 0x10000000; |
* Try to ask first stage bootloader about physical memory. |
bp->main_mem.size = 0x02000000; /* 32MB */ |
*/ |
|
printk("setup_bootinfo: fetching boot_params @0x%x", BOOT_PARAMS); |
|
ucfp = uboot_map(BOOT_PARAMS); |
|
if (ucfp != NULL) { |
|
bp->main_mem.start = ucfp->ucf_memstart; |
|
bp->main_mem.size = ucfp->ucf_memsize; |
|
} else { |
|
/* use defaults */ |
|
bp->main_mem.start = 0x10000000; |
|
bp->main_mem.size = 0x02000000; /* 32MB */ |
|
} |
|
|
|
printk("setup_bootinfo: main memory start=%x size=%x (using %s values)\n", |
|
(int)boot_info->main_mem.start, |
|
(int)boot_info->main_mem.size, |
|
ucfp == NULL ? "default" : "u-boot"); |
|
|
*bpp = bp; |
*bpp = bp; |
} |
} |