aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/mx21ads.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-08-13 04:04:44 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-08-14 06:41:16 -0400
commitc35d3a418149f145ff0d90833db3e298e88de1ad (patch)
treebabb417b8dc395614b952b0680348ece9943440d /arch/arm/mach-mx2/mx21ads.c
parentf6d2fa7dcbd438da4d150f695ebd219419a325ce (diff)
mx21ads: Fix framebuffer platform data
struct imx_fb_platform_data has changed and the mx21ads was forgotten to change. Fix it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/mx21ads.c')
-rw-r--r--arch/arm/mach-mx2/mx21ads.c44
1 files changed, 26 insertions, 18 deletions
diff --git a/arch/arm/mach-mx2/mx21ads.c b/arch/arm/mach-mx2/mx21ads.c
index a525783ceea3..cf5f77cbc2f1 100644
--- a/arch/arm/mach-mx2/mx21ads.c
+++ b/arch/arm/mach-mx2/mx21ads.c
@@ -164,25 +164,33 @@ static void mx21ads_fb_exit(struct platform_device *pdev)
164 * Connected is a portrait Sharp-QVGA display 164 * Connected is a portrait Sharp-QVGA display
165 * of type: LQ035Q7DB02 165 * of type: LQ035Q7DB02
166 */ 166 */
167static struct imx_fb_videomode mx21ads_modes[] = {
168 {
169 .mode = {
170 .name = "Sharp-LQ035Q7",
171 .refresh = 60,
172 .xres = 240,
173 .yres = 320,
174 .pixclock = 188679, /* in ps (5.3MHz) */
175 .hsync_len = 2,
176 .left_margin = 6,
177 .right_margin = 16,
178 .vsync_len = 1,
179 .upper_margin = 8,
180 .lower_margin = 10,
181 },
182 .pcr = 0xfb108bc7,
183 .bpp = 16,
184 },
185};
186
167static struct imx_fb_platform_data mx21ads_fb_data = { 187static struct imx_fb_platform_data mx21ads_fb_data = {
168 .pixclock = 188679, /* in ps */ 188 .mode = mx21ads_modes,
169 .xres = 240, 189 .num_modes = ARRAY_SIZE(mx21ads_modes),
170 .yres = 320, 190
171 191 .pwmr = 0x00a903ff,
172 .bpp = 16, 192 .lscr1 = 0x00120300,
173 .hsync_len = 2, 193 .dmacr = 0x00020008,
174 .left_margin = 6,
175 .right_margin = 16,
176
177 .vsync_len = 1,
178 .upper_margin = 8,
179 .lower_margin = 10,
180 .fixed_screen_cpu = 0,
181
182 .pcr = 0xFB108BC7,
183 .pwmr = 0x00A901ff,
184 .lscr1 = 0x00120300,
185 .dmacr = 0x00020008,
186 194
187 .init = mx21ads_fb_init, 195 .init = mx21ads_fb_init,
188 .exit = mx21ads_fb_exit, 196 .exit = mx21ads_fb_exit,