1 /*
2 * linux/arch/arm/mach-sa1100/brutus.c
3 *
4 * Author: Nicolas Pitre
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11 #include <linux/init.h>
12 #include <linux/kernel.h>
13 #include <linux/tty.h>
14
15 #include <asm/hardware.h>
16 #include <asm/setup.h>
17
18 #include <asm/mach/arch.h>
19 #include <asm/mach/map.h>
20 #include <asm/mach/serial_sa1100.h>
21
22 #include "generic.h"
23
24
25 static void __init
fixup_brutus(struct machine_desc * desc,struct param_struct * params,char ** cmdline,struct meminfo * mi)26 fixup_brutus(struct machine_desc *desc, struct param_struct *params,
27 char **cmdline, struct meminfo *mi)
28 {
29 SET_BANK( 0, 0xc0000000, 4*1024*1024 );
30 SET_BANK( 1, 0xc8000000, 4*1024*1024 );
31 SET_BANK( 2, 0xd0000000, 4*1024*1024 );
32 SET_BANK( 3, 0xd8000000, 4*1024*1024 );
33 mi->nr_banks = 4;
34
35 ROOT_DEV = MKDEV(RAMDISK_MAJOR,0);
36 setup_ramdisk( 1, 0, 0, 8192 );
37 setup_initrd( __phys_to_virt(0xd8000000), 3*1024*1024 );
38 }
39
brutus_map_io(void)40 static void __init brutus_map_io(void)
41 {
42 sa1100_map_io();
43
44 sa1100_register_uart(0, 1);
45 sa1100_register_uart(1, 3);
46 GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
47 GPDR |= GPIO_UART_TXD;
48 GPDR &= ~GPIO_UART_RXD;
49 PPAR |= PPAR_UPR;
50 }
51
52 MACHINE_START(BRUTUS, "Intel Brutus (SA1100 eval board)")
53 BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
54 FIXUP(fixup_brutus)
55 MAPIO(brutus_map_io)
56 INITIRQ(sa1100_init_irq)
57 MACHINE_END
58