Bellido Nicolas | 038c5b6 | 2005-06-20 18:51:05 +0100 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/arm/mach-aaec2000/aaed2000.c |
| 3 | * |
| 4 | * Support for the Agilent AAED-2000 Development Platform. |
| 5 | * |
| 6 | * Copyright (c) 2005 Nicolas Bellido Y Ortega |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | */ |
| 13 | #include <linux/module.h> |
| 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> |
| 16 | #include <linux/device.h> |
| 17 | #include <linux/major.h> |
| 18 | #include <linux/interrupt.h> |
| 19 | |
| 20 | #include <asm/setup.h> |
| 21 | #include <asm/memory.h> |
| 22 | #include <asm/mach-types.h> |
| 23 | #include <asm/hardware.h> |
| 24 | #include <asm/irq.h> |
| 25 | |
| 26 | #include <asm/mach/arch.h> |
| 27 | #include <asm/mach/map.h> |
| 28 | #include <asm/mach/irq.h> |
| 29 | |
Bellido Nicolas | 4028ef4 | 2005-10-28 16:51:40 +0100 | [diff] [blame^] | 30 | #include <asm/arch/aaed2000.h> |
| 31 | |
Bellido Nicolas | 038c5b6 | 2005-06-20 18:51:05 +0100 | [diff] [blame] | 32 | #include "core.h" |
| 33 | |
| 34 | static void __init aaed2000_init_irq(void) |
| 35 | { |
| 36 | aaec2000_init_irq(); |
| 37 | } |
| 38 | |
Bellido Nicolas | 4028ef4 | 2005-10-28 16:51:40 +0100 | [diff] [blame^] | 39 | static struct map_desc aaed2000_io_desc[] __initdata = { |
| 40 | { EXT_GPIO_VBASE, EXT_GPIO_PBASE, EXT_GPIO_LENGTH, MT_DEVICE }, /* Ext GPIO */ |
| 41 | }; |
| 42 | |
Bellido Nicolas | 038c5b6 | 2005-06-20 18:51:05 +0100 | [diff] [blame] | 43 | static void __init aaed2000_map_io(void) |
| 44 | { |
| 45 | aaec2000_map_io(); |
Bellido Nicolas | 4028ef4 | 2005-10-28 16:51:40 +0100 | [diff] [blame^] | 46 | iotable_init(aaed2000_io_desc, ARRAY_SIZE(aaed2000_io_desc)); |
Bellido Nicolas | 038c5b6 | 2005-06-20 18:51:05 +0100 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | MACHINE_START(AAED2000, "Agilent AAED-2000 Development Platform") |
Russell King | e9dea0c | 2005-07-03 17:38:58 +0100 | [diff] [blame] | 50 | /* Maintainer: Nicolas Bellido Y Ortega */ |
| 51 | .phys_ram = 0xf0000000, |
| 52 | .phys_io = PIO_BASE, |
| 53 | .io_pg_offst = ((VIO_BASE) >> 18) & 0xfffc, |
| 54 | .map_io = aaed2000_map_io, |
| 55 | .init_irq = aaed2000_init_irq, |
Bellido Nicolas | 038c5b6 | 2005-06-20 18:51:05 +0100 | [diff] [blame] | 56 | .timer = &aaec2000_timer, |
| 57 | MACHINE_END |