blob: ed6744d480aff0f04e2b1bd6a1f742b1e01d3b23 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/arm/mach-sa1100/lart.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/mach-types.h>
12
13#include <asm/mach/arch.h>
14#include <asm/mach/map.h>
15#include <asm/mach/serial_sa1100.h>
Russell King323cdfc2005-08-18 10:10:46 +010016#include <asm/arch/mcp.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
18#include "generic.h"
19
20
21#warning "include/asm/arch-sa1100/ide.h needs fixing for lart"
22
Russell King323cdfc2005-08-18 10:10:46 +010023static struct mcp_plat_data lart_mcp_data = {
24 .mccr0 = MCCR0_ADM,
25 .sclk_rate = 11981000,
26};
27
28static void __init lart_init(void)
29{
30 sa11x0_set_mcp_data(&lart_mcp_data);
31}
32
Linus Torvalds1da177e2005-04-16 15:20:36 -070033static struct map_desc lart_io_desc[] __initdata = {
34 /* virtual physical length type */
35 { 0xe8000000, 0x00000000, 0x00400000, MT_DEVICE }, /* main flash memory */
36 { 0xec000000, 0x08000000, 0x00400000, MT_DEVICE } /* main flash, alternative location */
37};
38
39static void __init lart_map_io(void)
40{
41 sa1100_map_io();
42 iotable_init(lart_io_desc, ARRAY_SIZE(lart_io_desc));
43
44 sa1100_register_uart(0, 3);
45 sa1100_register_uart(1, 1);
46 sa1100_register_uart(2, 2);
47
48 GAFR |= (GPIO_UART_TXD | GPIO_UART_RXD);
49 GPDR |= GPIO_UART_TXD;
50 GPDR &= ~GPIO_UART_RXD;
51 PPAR |= PPAR_UPR;
52}
53
54MACHINE_START(LART, "LART")
Russell Kinge9dea0c2005-07-03 17:38:58 +010055 .phys_ram = 0xc0000000,
56 .phys_io = 0x80000000,
57 .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
58 .boot_params = 0xc0000100,
59 .map_io = lart_map_io,
60 .init_irq = sa1100_init_irq,
Russell King323cdfc2005-08-18 10:10:46 +010061 .init_machine = lart_init,
Linus Torvalds1da177e2005-04-16 15:20:36 -070062 .timer = &sa1100_timer,
63MACHINE_END