2 * copyright 2007 john crispin <blogic@openwrt.org>
4 #include <linux/init.h>
5 #include <linux/string.h>
6 #include <linux/ctype.h>
7 #include <linux/kernel.h>
9 #include <linux/bootmem.h>
10 #include <linux/ioport.h>
11 #include <asm/bootinfo.h>
12 #include <asm/amazon/amazon.h>
13 #include <asm/amazon/irq.h>
14 #include <asm/amazon/model.h>
17 void prom_putchar(char c
)
19 /* Wait for FIFO to empty */
20 while (((*AMAZON_ASC_FSTAT
) >> 8) != 0x00) ;
21 /* Crude cr/nl handling is better than none */
23 *AMAZON_ASC_TBUF
=('\r');
27 void prom_printf(const char * fmt
, ...)
35 l
= vsprintf(buf
, fmt
, args
); /* hopefully i < sizeof(buf) */
39 for (p
= buf
; p
< buf_end
; p
++)
44 void __init
prom_init(void)
46 mips_machgroup
= MACH_GROUP_INFINEON
;
47 mips_machtype
= MACH_INFINEON_AMAZON
;
49 strcpy(&(arcs_cmdline
[0]), "console=ttyS0,115200 rootfstype=squashfs,jffs2 init=/etc/preinit");
51 add_memory_region(0x00000000, 0x1000000, BOOT_MEM_RAM
);
54 void prom_free_prom_memory(void)
58 const char *get_system_type(void)
60 return BOARD_SYSTEM_TYPE
;
This page took 0.044334 seconds and 5 git commands to generate.