2 * linux/arch/arm/mach-sa1100/jornada720.c
5 #include <linux/init.h>
6 #include <linux/kernel.h>
8 #include <linux/delay.h>
9 #include <linux/device.h>
10 #include <linux/ioport.h>
12 #include <asm/hardware.h>
13 #include <asm/hardware/sa1111.h>
15 #include <asm/mach-types.h>
16 #include <asm/setup.h>
18 #include <asm/mach/arch.h>
19 #include <asm/mach/map.h>
20 #include <asm/mach/serial_sa1100.h>
25 #define JORTUCR_VAL 0x20000400
27 static struct resource sa1111_resources[] = {
31 .flags = IORESOURCE_MEM,
36 .flags = IORESOURCE_IRQ,
40 static u64 sa1111_dmamask = 0xffffffffUL;
42 static struct platform_device sa1111_device = {
46 .dma_mask = &sa1111_dmamask,
47 .coherent_dma_mask = 0xffffffff,
49 .num_resources = ARRAY_SIZE(sa1111_resources),
50 .resource = sa1111_resources,
53 static struct platform_device *devices[] __initdata = {
57 static int __init jornada720_init(void)
61 if (machine_is_jornada720()) {
63 TUCR = JORTUCR_VAL; /* set the oscillator out to the SA-1101 */
72 /* LDD4 is speaker, LDD3 is microphone */
73 PPSR &= ~(PPC_LDD3 | PPC_LDD4);
74 PPDR |= PPC_LDD3 | PPC_LDD4;
76 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
81 arch_initcall(jornada720_init);
83 static struct map_desc jornada720_io_desc[] __initdata = {
84 { /* Epson registers */
85 .virtual = 0xf0000000,
86 .pfn = __phys_to_pfn(0x48000000),
89 }, { /* Epson frame buffer */
90 .virtual = 0xf1000000,
91 .pfn = __phys_to_pfn(0x48200000),
95 .virtual = 0xf4000000,
96 .pfn = __phys_to_pfn(0x40000000),
102 static void __init jornada720_map_io(void)
105 iotable_init(jornada720_io_desc, ARRAY_SIZE(jornada720_io_desc));
107 sa1100_register_uart(0, 3);
108 sa1100_register_uart(1, 1);
111 MACHINE_START(JORNADA720, "HP Jornada 720")
112 /* Maintainer: Michael Gernoth <michael@gernoth.net> */
113 .phys_ram = 0xc0000000,
114 .phys_io = 0x80000000,
115 .io_pg_offst = ((0xf8000000) >> 18) & 0xfffc,
116 .boot_params = 0xc0000100,
117 .map_io = jornada720_map_io,
118 .init_irq = sa1100_init_irq,
119 .timer = &sa1100_timer,