This source file includes following definitions.
- ip22_be_init
1
2
3
4
5
6
7
8 #include <linux/init.h>
9 #include <linux/kernel.h>
10 #include <linux/kdev_t.h>
11 #include <linux/types.h>
12 #include <linux/console.h>
13 #include <linux/sched.h>
14 #include <linux/tty.h>
15
16 #include <asm/addrspace.h>
17 #include <asm/bcache.h>
18 #include <asm/bootinfo.h>
19 #include <asm/irq.h>
20 #include <asm/reboot.h>
21 #include <asm/time.h>
22 #include <asm/io.h>
23 #include <asm/traps.h>
24 #include <asm/sgialib.h>
25 #include <asm/sgi/mc.h>
26 #include <asm/sgi/hpc3.h>
27 #include <asm/sgi/ip22.h>
28
29 extern void ip22_be_init(void) __init;
30
31 void __init plat_mem_setup(void)
32 {
33 char *ctype;
34 char *cserial;
35
36 board_be_init = ip22_be_init;
37
38
39
40
41
42 sgihpc_init();
43
44
45 sgimc_init();
46
47 #ifdef CONFIG_BOARD_SCACHE
48
49 indy_sc_init();
50 #endif
51
52
53
54 set_io_port_base((unsigned long)ioremap(0x00080000,
55 0x1fffffff - 0x00080000));
56
57
58
59
60
61
62
63 ctype = ArcGetEnvironmentVariable("console");
64 cserial = ArcGetEnvironmentVariable("ConsoleOut");
65
66 if ((ctype && *ctype == 'd') || (cserial && *cserial == 's')) {
67 static char options[8] __initdata;
68 char *baud = ArcGetEnvironmentVariable("dbaud");
69 if (baud)
70 strcpy(options, baud);
71 add_preferred_console("ttyS", *(ctype + 1) == '2' ? 1 : 0,
72 baud ? options : NULL);
73 } else if (!ctype || *ctype != 'g') {
74
75 prom_flags |= PROM_FLAG_USE_AS_CONSOLE;
76 add_preferred_console("arc", 0, NULL);
77 }
78 }