2 * Early initialization code for BCM94710 boards
4 * Copyright 2004, Broadcom Corporation
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 * $Id: prom.c,v 1.1 2005/03/16 13:49:59 wbx Exp $
15 #include <linux/config.h>
16 #include <linux/init.h>
17 #include <linux/kernel.h>
18 #include <linux/types.h>
19 #include <asm/bootinfo.h>
22 prom_init(int argc
, const char **argv
)
26 mips_machgroup
= MACH_GROUP_BRCM
;
27 mips_machtype
= MACH_BCM947XX
;
29 /* Figure out memory size by finding aliases */
30 for (mem
= (1 << 20); mem
< (128 << 20); mem
+= (1 << 20)) {
31 if (*(unsigned long *)((unsigned long)(prom_init
) + mem
) ==
32 *(unsigned long *)(prom_init
))
35 add_memory_region(0, mem
, BOOT_MEM_RAM
);
39 prom_free_prom_memory(void)
This page took 0.046725 seconds and 5 git commands to generate.