aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBellido Nicolas <ml@acolin.be>2005-10-28 11:51:44 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-28 11:51:44 -0400
commit50f4c001bc1534db77663592496204ceba151e97 (patch)
tree5391f9f8728bd489a5eaa1523e6c198e537db1ba
parent049eb3298a832a63c55bc8d8ea4cc881ab99f84b (diff)
[ARM] 3042/1: AAED-2000 - LCD panel informations
Patch from Bellido Nicolas The AAED-2000 is equiped with an 640x480 LCD. This adds the parameters that will be passed to the AAEC-2000 platform code. Signed-off-by: Nicolas Bellido <ml@acolin.be> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/mach-aaec2000/aaed2000.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/arch/arm/mach-aaec2000/aaed2000.c b/arch/arm/mach-aaec2000/aaed2000.c
index 7b0a1c7d64a9..f5ef69702296 100644
--- a/arch/arm/mach-aaec2000/aaed2000.c
+++ b/arch/arm/mach-aaec2000/aaed2000.c
@@ -31,11 +31,53 @@
31 31
32#include "core.h" 32#include "core.h"
33 33
34static void aaed2000_clcd_disable(struct clcd_fb *fb)
35{
36 AAED_EXT_GPIO &= ~AAED_EGPIO_LCD_PWR_EN;
37}
38
39static void aaed2000_clcd_enable(struct clcd_fb *fb)
40{
41 AAED_EXT_GPIO |= AAED_EGPIO_LCD_PWR_EN;
42}
43
44struct aaec2000_clcd_info clcd_info = {
45 .enable = aaed2000_clcd_enable,
46 .disable = aaed2000_clcd_disable,
47 .panel = {
48 .mode = {
49 .name = "Sharp",
50 .refresh = 60,
51 .xres = 640,
52 .yres = 480,
53 .pixclock = 39721,
54 .left_margin = 20,
55 .right_margin = 44,
56 .upper_margin = 21,
57 .lower_margin = 34,
58 .hsync_len = 96,
59 .vsync_len = 2,
60 .sync = 0,
61 .vmode = FB_VMODE_NONINTERLACED,
62 },
63 .width = -1,
64 .height = -1,
65 .tim2 = TIM2_IVS | TIM2_IHS,
66 .cntl = CNTL_LCDTFT,
67 .bpp = 16,
68 },
69};
70
34static void __init aaed2000_init_irq(void) 71static void __init aaed2000_init_irq(void)
35{ 72{
36 aaec2000_init_irq(); 73 aaec2000_init_irq();
37} 74}
38 75
76static void __init aaed2000_init(void)
77{
78 aaec2000_set_clcd_plat_data(&clcd_info);
79}
80
39static struct map_desc aaed2000_io_desc[] __initdata = { 81static struct map_desc aaed2000_io_desc[] __initdata = {
40 { EXT_GPIO_VBASE, EXT_GPIO_PBASE, EXT_GPIO_LENGTH, MT_DEVICE }, /* Ext GPIO */ 82 { EXT_GPIO_VBASE, EXT_GPIO_PBASE, EXT_GPIO_LENGTH, MT_DEVICE }, /* Ext GPIO */
41}; 83};
@@ -54,4 +96,5 @@ MACHINE_START(AAED2000, "Agilent AAED-2000 Development Platform")
54 .map_io = aaed2000_map_io, 96 .map_io = aaed2000_map_io,
55 .init_irq = aaed2000_init_irq, 97 .init_irq = aaed2000_init_irq,
56 .timer = &aaec2000_timer, 98 .timer = &aaec2000_timer,
99 .init_machine = aaed2000_init,
57MACHINE_END 100MACHINE_END