317a23ca4a54e92f1d51a05e3afd8ee1a9cc6f00
2 * arch/mips/ifxmips/prom.c
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18 * Copyright (C) 2005 Wu Qi Ming infineon
20 * Rewrite of Infineon IFXMips code, thanks to infineon for the support,
21 * software and hardware
23 * Copyright (C) 2007 John Crispin <blogic@openwrt.org>
27 #include <linux/init.h>
28 #include <linux/bootmem.h>
29 #include <asm/bootinfo.h>
30 #include <asm/ifxmips/ifxmips.h>
32 static char buf
[1024];
35 prom_free_prom_memory (void)
40 get_system_type (void)
42 return BOARD_SYSTEM_TYPE
;
48 while ((readl(IFXMIPS_ASC1_FSTAT
) & ASCFSTAT_TXFFLMASK
) >> ASCFSTAT_TXFFLOFF
);
51 writel('\r', IFXMIPS_ASC1_TBUF
);
52 writel(c
, IFXMIPS_ASC1_TBUF
);
56 prom_printf (const char * fmt
, ...)
63 l
= vsprintf(buf
, fmt
, args
);
67 for (p
= buf
; p
< buf_end
; p
++)
76 mips_machgroup
= MACH_GROUP_IFXMIPS
;
77 mips_machtype
= MACH_INFINEON_IFXMIPS
;
79 strcpy(&(arcs_cmdline
[0]), "console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit");
80 add_memory_region (0x00000000, 0x2000000, BOOT_MEM_RAM
);
This page took 0.040643 seconds and 3 git commands to generate.