2 Copyright 2004 Broadcom Corp. All Rights Reserved.
3 Copyright 2007 OpenWrt,org, Florian Fainelli <florian@openwrt.org>
5 This program is free software; you can distribute it and/or modify it
6 under the terms of the GNU General Public License (Version 2) as
7 published by the Free Software Foundation.
9 This program is distributed in the hope it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
19 * prom.c: PROM library initialization code.
22 #include <linux/init.h>
24 #include <linux/sched.h>
25 #include <linux/bootmem.h>
26 #include <linux/blkdev.h>
28 #include <asm/addrspace.h>
29 #include <asm/bootinfo.h>
32 #include <asm/mach-bcm963xx/bootloaders.h>
33 #include <asm/mach-bcm963xx/6348_map_part.h>
35 #include "../cfe/cfe_private.h"
37 extern void __init
detect_bootloader(void);
38 extern void serial_init(void);
39 extern int boot_loader_type
;
41 #define MACH_BCM MACH_BCM96348
43 const char *get_system_type(void)
45 return "Broadcom BCM963xx";
48 void __init
prom_init(void)
52 printk("%s prom init\n", get_system_type() );
56 /* Detect the bootloader */
59 /* Register 16MB RAM minus the ADSL SDRAM by default */
60 add_memory_region(0, (0x01000000 - ADSL_SDRAM_IMAGE_SIZE
), BOOT_MEM_RAM
);
64 void __init
prom_free_prom_memory(void)
66 /* We do not have any memory to free */
This page took 0.047263 seconds and 5 git commands to generate.