Blame view
arch/arm/mach-sa1100/lart.c
1.65 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 4 5 6 7 |
/* * linux/arch/arm/mach-sa1100/lart.c */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/tty.h> |
a09e64fbc [ARM] Move includ... |
8 |
#include <mach/hardware.h> |
1da177e4c Linux-2.6.12-rc2 |
9 10 |
#include <asm/setup.h> #include <asm/mach-types.h> |
5876ee950 [ARM] lart: fix b... |
11 |
#include <asm/page.h> |
1da177e4c Linux-2.6.12-rc2 |
12 13 14 15 |
#include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/serial_sa1100.h> |
a09e64fbc [ARM] Move includ... |
16 |
#include <mach/mcp.h> |
1da177e4c Linux-2.6.12-rc2 |
17 18 19 20 21 |
#include "generic.h" #warning "include/asm/arch-sa1100/ide.h needs fixing for lart" |
323cdfc19 [MFD] Add SA11x0 ... |
22 23 24 |
static struct mcp_plat_data lart_mcp_data = { .mccr0 = MCCR0_ADM, .sclk_rate = 11981000, |
5dd7bf59e ARM: sa11x0: Impl... |
25 |
.codec = "ucb1x00", |
323cdfc19 [MFD] Add SA11x0 ... |
26 27 28 29 |
}; static void __init lart_init(void) { |
af9081ae6 ARM: sa1100: Refa... |
30 31 32 33 34 35 36 37 |
/* * Setup the PPC unit correctly. */ PPDR &= ~PPC_RXD4; PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM; PSDR |= PPC_RXD4; PSDR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM); PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM); |
7a5b4e16c ARM: sa11x0: conv... |
38 |
sa11x0_register_mcp(&lart_mcp_data); |
323cdfc19 [MFD] Add SA11x0 ... |
39 |
} |
1da177e4c Linux-2.6.12-rc2 |
40 |
static struct map_desc lart_io_desc[] __initdata = { |
92519d828 [ARM] 2992/1: Rep... |
41 42 43 44 45 46 47 48 49 50 51 |
{ /* main flash memory */ .virtual = 0xe8000000, .pfn = __phys_to_pfn(0x00000000), .length = 0x00400000, .type = MT_DEVICE }, { /* main flash, alternative location */ .virtual = 0xec000000, .pfn = __phys_to_pfn(0x08000000), .length = 0x00400000, .type = MT_DEVICE } |
1da177e4c Linux-2.6.12-rc2 |
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
}; static void __init lart_map_io(void) { sa1100_map_io(); iotable_init(lart_io_desc, ARRAY_SIZE(lart_io_desc)); sa1100_register_uart(0, 3); sa1100_register_uart(1, 1); sa1100_register_uart(2, 2); GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD); GPDR |= GPIO_UART_TXD; GPDR &= ~GPIO_UART_RXD; PPAR |= PPAR_UPR; } MACHINE_START(LART, "LART") |
17f4425d5 ARM: mach-sa1100:... |
70 |
.atag_offset = 0x100, |
e9dea0c65 [PATCH] ARM: Remo... |
71 72 |
.map_io = lart_map_io, .init_irq = sa1100_init_irq, |
323cdfc19 [MFD] Add SA11x0 ... |
73 |
.init_machine = lart_init, |
1da177e4c Linux-2.6.12-rc2 |
74 |
.timer = &sa1100_timer, |
d9ca5839f ARM: restart: sa1... |
75 |
.restart = sa11x0_restart, |
1da177e4c Linux-2.6.12-rc2 |
76 |
MACHINE_END |