ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / arm / mach-sa1100 / shannon.c
1 /*
2  * linux/arch/arm/mach-sa1100/shannon.c
3  */
4
5 #include <linux/init.h>
6 #include <linux/kernel.h>
7 #include <linux/tty.h>
8
9 #include <asm/hardware.h>
10 #include <asm/setup.h>
11 #include <asm/irq.h>
12
13 #include <asm/mach/arch.h>
14 #include <asm/mach/map.h>
15 #include <asm/mach/serial_sa1100.h>
16 #include <asm/arch/shannon.h>
17
18 #include "generic.h"
19
20
21 static void __init shannon_map_io(void)
22 {
23         sa1100_map_io();
24
25         sa1100_register_uart(0, 3);
26         sa1100_register_uart(1, 1);
27
28         Ser1SDCR0 |= SDCR0_SUS;
29         GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
30         GPDR |= GPIO_UART_TXD | SHANNON_GPIO_CODEC_RESET;
31         GPDR &= ~GPIO_UART_RXD;
32         PPAR |= PPAR_UPR;
33
34         /* reset the codec */
35         GPCR = SHANNON_GPIO_CODEC_RESET;
36         GPSR = SHANNON_GPIO_CODEC_RESET;
37 }
38
39 MACHINE_START(SHANNON, "Shannon (AKA: Tuxscreen)")
40         BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
41         BOOT_PARAMS(0xc0000100)
42         MAPIO(shannon_map_io)
43         INITIRQ(sa1100_init_irq)
44 MACHINE_END