17 #include <linux/stddef.h>
18 #include <linux/kernel.h>
20 #include <linux/errno.h>
21 #include <linux/reboot.h>
22 #include <linux/kdev_t.h>
23 #include <linux/types.h>
29 #include <linux/serial.h>
32 #include <asm/processor.h>
34 #include <asm/bootparam.h>
35 #include <platform/hardware.h>
36 #include <platform/serial.h>
40 static void led_print (
int f,
char *
s)
44 for (i = f; i < 8; i++)
45 if ((*led_addr++ = *s++) == 0)
51 led_print (0,
" HALT ");
58 led_print (0,
"POWEROFF");
68 __asm__ __volatile__ (
"movi a2, 15\n\t"
69 "wsr a2, icountlevel\n\t"
72 "wsr a2, ibreakenable\n\t"
88 led_print (0,
"LINUX ");
99 if (sysmem.nr_banks == 0) {
111 static int i=0,
t = 0;
116 led_print(7, i ?
".":
" ");
124 #define _SERIAL_PORT(_base,_irq) \
126 .mapbase = (_base), \
127 .membase = (void*)(_base), \
129 .uartclk = DUART16552_XTAL_FREQ, \
130 .iotype = UPIO_MEM, \
131 .flags = UPF_BOOT_AUTOCONF, \
147 .name =
"serial8250",
150 .platform_data = xt2000_serial_data,
154 static struct resource xt2000_sonic_res[] = {
169 .num_resources =
ARRAY_SIZE(xt2000_sonic_res),
170 .resource = xt2000_sonic_res,
173 static int __init xt2000_setup_devinit(
void)