2 * linux/arch/arm/mach-sa1100/lart.c
5 #include <linux/init.h>
6 #include <linux/kernel.h>
9 #include <mach/hardware.h>
10 #include <asm/setup.h>
11 #include <asm/mach-types.h>
14 #include <asm/mach/arch.h>
15 #include <asm/mach/map.h>
16 #include <asm/mach/serial_sa1100.h>
22 #warning "include/asm/arch-sa1100/ide.h needs fixing for lart"
24 static struct mcp_plat_data lart_mcp_data = {
26 .sclk_rate = 11981000,
30 static void __init lart_init(void)
33 * Setup the PPC unit correctly.
36 PPDR |= PPC_TXD4 | PPC_SCLK | PPC_SFRM;
38 PSDR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
39 PPSR &= ~(PPC_TXD4 | PPC_SCLK | PPC_SFRM);
41 sa11x0_register_mcp(&lart_mcp_data);
44 static struct map_desc lart_io_desc[] __initdata = {
45 { /* main flash memory */
46 .virtual = 0xe8000000,
47 .pfn = __phys_to_pfn(0x00000000),
50 }, { /* main flash, alternative location */
51 .virtual = 0xec000000,
52 .pfn = __phys_to_pfn(0x08000000),
58 static void __init lart_map_io(void)
61 iotable_init(lart_io_desc, ARRAY_SIZE(lart_io_desc));
63 sa1100_register_uart(0, 3);
64 sa1100_register_uart(1, 1);
65 sa1100_register_uart(2, 2);
67 GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
68 GPDR |= GPIO_UART_TXD;
69 GPDR &= ~GPIO_UART_RXD;
73 MACHINE_START(LART, "LART")
75 .map_io = lart_map_io,
76 .init_irq = sa1100_init_irq,
77 .init_machine = lart_init,
78 .timer = &sa1100_timer,
79 .restart = sa11x0_restart,