2 * linux/arch/arm/mach-aaec2000/aaed2000.c
4 * Support for the Agilent AAED-2000 Development Platform.
6 * Copyright (c) 2005 Nicolas Bellido Y Ortega
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.
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>
20 #include <asm/setup.h>
21 #include <asm/memory.h>
22 #include <asm/mach-types.h>
23 #include <asm/hardware.h>
26 #include <asm/mach/arch.h>
27 #include <asm/mach/map.h>
28 #include <asm/mach/irq.h>
30 #include <asm/arch/aaed2000.h>
34 static void aaed2000_clcd_disable(struct clcd_fb *fb)
36 AAED_EXT_GPIO &= ~AAED_EGPIO_LCD_PWR_EN;
39 static void aaed2000_clcd_enable(struct clcd_fb *fb)
41 AAED_EXT_GPIO |= AAED_EGPIO_LCD_PWR_EN;
44 struct aaec2000_clcd_info clcd_info = {
45 .enable = aaed2000_clcd_enable,
46 .disable = aaed2000_clcd_disable,
61 .vmode = FB_VMODE_NONINTERLACED,
65 .tim2 = TIM2_IVS | TIM2_IHS,
71 static void __init aaed2000_init_irq(void)
76 static void __init aaed2000_init(void)
78 aaec2000_set_clcd_plat_data(&clcd_info);
81 static struct map_desc aaed2000_io_desc[] __initdata = {
83 .virtual = EXT_GPIO_VBASE,
84 .pfn = __phys_to_pfn(EXT_GPIO_PBASE),
85 .length = EXT_GPIO_LENGTH,
90 static void __init aaed2000_map_io(void)
93 iotable_init(aaed2000_io_desc, ARRAY_SIZE(aaed2000_io_desc));
96 MACHINE_START(AAED2000, "Agilent AAED-2000 Development Platform")
97 /* Maintainer: Nicolas Bellido Y Ortega */
99 .io_pg_offst = ((VIO_BASE) >> 18) & 0xfffc,
100 .map_io = aaed2000_map_io,
101 .init_irq = aaed2000_init_irq,
102 .timer = &aaec2000_timer,
103 .init_machine = aaed2000_init,