fonera-mp3: fix json-c dependency here as well
[openwrt.git] / target / linux / brcm-2.4 / files / arch / mips / bcm947xx / prom.c
1 /*
2 * Early initialization code for BCM94710 boards
3 *
4 * Copyright 2004, Broadcom Corporation
5 * All Rights Reserved.
6 *
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.
11 *
12 * $Id: prom.c,v 1.1 2005/03/16 13:49:59 wbx Exp $
13 */
14
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>
20
21 void __init
22 prom_init(int argc, const char **argv)
23 {
24 unsigned long mem;
25
26 mips_machgroup = MACH_GROUP_BRCM;
27 mips_machtype = MACH_BCM947XX;
28
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))
33 break;
34 }
35 add_memory_region(0, mem, BOOT_MEM_RAM);
36 }
37
38 void __init
39 prom_free_prom_memory(void)
40 {
41 }
This page took 0.04594 seconds and 5 git commands to generate.