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 /* Do further initialisations depending on the bootloader */
60 if (boot_loader_type
== BOOT_LOADER_CFE
|| boot_loader_type
== BOOT_LOADER_CFE2
) {
61 cfe_setup(fw_arg0
, fw_arg1
, fw_arg2
, fw_arg3
);
63 /* Register 16MB RAM minus the ADSL SDRAM by default */
64 add_memory_region(0, (0x01000000 - ADSL_SDRAM_IMAGE_SIZE
), BOOT_MEM_RAM
);
66 mips_machgroup
= MACH_GROUP_BRCM
;
67 mips_machtype
= MACH_BCM
;
70 void __init
prom_free_prom_memory(void)
72 /* We do not have any memory to free */
This page took 0.065091 seconds and 5 git commands to generate.