diff options
author | Eric Bénard <eric@eukrea.com> | 2010-10-08 04:56:10 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-19 12:44:59 -0400 |
commit | c0550c4bf1a6b868ac98b63f88ffd1a7ebdbeaeb (patch) | |
tree | 11958eb9b6cb4ec0f8e6374896ab341a193a7331 /arch/arm/mach-mx3 | |
parent | 52d084fc90f754a7aed7e7d6e1484be45454aba3 (diff) |
eukrea_mbimxsd: add support for DVI displays
Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c index 886959906fbc..1c004c82d84c 100644 --- a/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c +++ b/arch/arm/mach-mx3/eukrea_mbimxsd-baseboard.c | |||
@@ -49,7 +49,7 @@ | |||
49 | 49 | ||
50 | static const struct fb_videomode fb_modedb[] = { | 50 | static const struct fb_videomode fb_modedb[] = { |
51 | { | 51 | { |
52 | .name = "CMO_QVGA", | 52 | .name = "CMO-QVGA", |
53 | .refresh = 60, | 53 | .refresh = 60, |
54 | .xres = 320, | 54 | .xres = 320, |
55 | .yres = 240, | 55 | .yres = 240, |
@@ -64,6 +64,40 @@ static const struct fb_videomode fb_modedb[] = { | |||
64 | .vmode = FB_VMODE_NONINTERLACED, | 64 | .vmode = FB_VMODE_NONINTERLACED, |
65 | .flag = 0, | 65 | .flag = 0, |
66 | }, | 66 | }, |
67 | { | ||
68 | .name = "DVI-VGA", | ||
69 | .refresh = 60, | ||
70 | .xres = 640, | ||
71 | .yres = 480, | ||
72 | .pixclock = 32000, | ||
73 | .left_margin = 100, | ||
74 | .right_margin = 100, | ||
75 | .upper_margin = 7, | ||
76 | .lower_margin = 100, | ||
77 | .hsync_len = 7, | ||
78 | .vsync_len = 7, | ||
79 | .sync = FB_SYNC_VERT_HIGH_ACT | FB_SYNC_HOR_HIGH_ACT | | ||
80 | FB_SYNC_OE_ACT_HIGH | FB_SYNC_CLK_INVERT, | ||
81 | .vmode = FB_VMODE_NONINTERLACED, | ||
82 | .flag = 0, | ||
83 | }, | ||
84 | { | ||
85 | .name = "DVI-SVGA", | ||
86 | .refresh = 60, | ||
87 | .xres = 800, | ||
88 | .yres = 600, | ||
89 | .pixclock = 25000, | ||
90 | .left_margin = 75, | ||
91 | .right_margin = 75, | ||
92 | .upper_margin = 7, | ||
93 | .lower_margin = 75, | ||
94 | .hsync_len = 7, | ||
95 | .vsync_len = 7, | ||
96 | .sync = FB_SYNC_VERT_HIGH_ACT | FB_SYNC_HOR_HIGH_ACT | | ||
97 | FB_SYNC_OE_ACT_HIGH | FB_SYNC_CLK_INVERT, | ||
98 | .vmode = FB_VMODE_NONINTERLACED, | ||
99 | .flag = 0, | ||
100 | }, | ||
67 | }; | 101 | }; |
68 | 102 | ||
69 | static struct ipu_platform_data mx3_ipu_data = { | 103 | static struct ipu_platform_data mx3_ipu_data = { |
@@ -72,7 +106,7 @@ static struct ipu_platform_data mx3_ipu_data = { | |||
72 | 106 | ||
73 | static struct mx3fb_platform_data mx3fb_pdata = { | 107 | static struct mx3fb_platform_data mx3fb_pdata = { |
74 | .dma_dev = &mx3_ipu.dev, | 108 | .dma_dev = &mx3_ipu.dev, |
75 | .name = "CMO_QVGA", | 109 | .name = "CMO-QVGA", |
76 | .mode = fb_modedb, | 110 | .mode = fb_modedb, |
77 | .num_modes = ARRAY_SIZE(fb_modedb), | 111 | .num_modes = ARRAY_SIZE(fb_modedb), |
78 | }; | 112 | }; |