diff options
-rw-r--r-- | arch/arm/mach-at91/board-cap9adk.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-neocore926.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-sam9261ek.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-sam9263ek.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-sam9m10g45ek.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-sam9rlek.c | 2 | ||||
-rw-r--r-- | drivers/video/atmel_lcdfb.c | 4 |
7 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-at91/board-cap9adk.c b/arch/arm/mach-at91/board-cap9adk.c index 911d9862e6ff..5dffd3be62d2 100644 --- a/arch/arm/mach-at91/board-cap9adk.c +++ b/arch/arm/mach-at91/board-cap9adk.c | |||
@@ -299,7 +299,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
299 | .xres = 240, .yres = 320, | 299 | .xres = 240, .yres = 320, |
300 | .pixclock = KHZ2PICOS(4965), | 300 | .pixclock = KHZ2PICOS(4965), |
301 | 301 | ||
302 | .left_margin = 1, .right_margin = 34, | 302 | .left_margin = 1, .right_margin = 33, |
303 | .upper_margin = 1, .lower_margin = 0, | 303 | .upper_margin = 1, .lower_margin = 0, |
304 | .hsync_len = 5, .vsync_len = 1, | 304 | .hsync_len = 5, .vsync_len = 1, |
305 | 305 | ||
diff --git a/arch/arm/mach-at91/board-neocore926.c b/arch/arm/mach-at91/board-neocore926.c index 190dc19ce467..ef816c17dc61 100644 --- a/arch/arm/mach-at91/board-neocore926.c +++ b/arch/arm/mach-at91/board-neocore926.c | |||
@@ -230,7 +230,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
230 | .xres = 240, .yres = 320, | 230 | .xres = 240, .yres = 320, |
231 | .pixclock = KHZ2PICOS(5000), | 231 | .pixclock = KHZ2PICOS(5000), |
232 | 232 | ||
233 | .left_margin = 1, .right_margin = 34, | 233 | .left_margin = 1, .right_margin = 33, |
234 | .upper_margin = 1, .lower_margin = 0, | 234 | .upper_margin = 1, .lower_margin = 0, |
235 | .hsync_len = 5, .vsync_len = 1, | 235 | .hsync_len = 5, .vsync_len = 1, |
236 | 236 | ||
diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c index 4f469ea46969..b005b738e8ff 100644 --- a/arch/arm/mach-at91/board-sam9261ek.c +++ b/arch/arm/mach-at91/board-sam9261ek.c | |||
@@ -365,7 +365,7 @@ static struct fb_videomode at91_stn_modes[] = { | |||
365 | .xres = 320, .yres = 240, | 365 | .xres = 320, .yres = 240, |
366 | .pixclock = KHZ2PICOS(1440), | 366 | .pixclock = KHZ2PICOS(1440), |
367 | 367 | ||
368 | .left_margin = 1, .right_margin = 2, | 368 | .left_margin = 1, .right_margin = 1, |
369 | .upper_margin = 0, .lower_margin = 0, | 369 | .upper_margin = 0, .lower_margin = 0, |
370 | .hsync_len = 1, .vsync_len = 1, | 370 | .hsync_len = 1, .vsync_len = 1, |
371 | 371 | ||
@@ -426,7 +426,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
426 | .xres = 240, .yres = 320, | 426 | .xres = 240, .yres = 320, |
427 | .pixclock = KHZ2PICOS(4965), | 427 | .pixclock = KHZ2PICOS(4965), |
428 | 428 | ||
429 | .left_margin = 1, .right_margin = 34, | 429 | .left_margin = 1, .right_margin = 33, |
430 | .upper_margin = 1, .lower_margin = 0, | 430 | .upper_margin = 1, .lower_margin = 0, |
431 | .hsync_len = 5, .vsync_len = 1, | 431 | .hsync_len = 5, .vsync_len = 1, |
432 | 432 | ||
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c index 0e96ee9e4ad3..bccdcf23caa1 100644 --- a/arch/arm/mach-at91/board-sam9263ek.c +++ b/arch/arm/mach-at91/board-sam9263ek.c | |||
@@ -253,7 +253,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
253 | .xres = 240, .yres = 320, | 253 | .xres = 240, .yres = 320, |
254 | .pixclock = KHZ2PICOS(4965), | 254 | .pixclock = KHZ2PICOS(4965), |
255 | 255 | ||
256 | .left_margin = 1, .right_margin = 34, | 256 | .left_margin = 1, .right_margin = 33, |
257 | .upper_margin = 1, .lower_margin = 0, | 257 | .upper_margin = 1, .lower_margin = 0, |
258 | .hsync_len = 5, .vsync_len = 1, | 258 | .hsync_len = 5, .vsync_len = 1, |
259 | 259 | ||
diff --git a/arch/arm/mach-at91/board-sam9m10g45ek.c b/arch/arm/mach-at91/board-sam9m10g45ek.c index 855c68b378d6..92de9127923a 100644 --- a/arch/arm/mach-at91/board-sam9m10g45ek.c +++ b/arch/arm/mach-at91/board-sam9m10g45ek.c | |||
@@ -192,7 +192,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
192 | .xres = 480, .yres = 272, | 192 | .xres = 480, .yres = 272, |
193 | .pixclock = KHZ2PICOS(9000), | 193 | .pixclock = KHZ2PICOS(9000), |
194 | 194 | ||
195 | .left_margin = 1, .right_margin = 2, | 195 | .left_margin = 1, .right_margin = 1, |
196 | .upper_margin = 40, .lower_margin = 1, | 196 | .upper_margin = 40, .lower_margin = 1, |
197 | .hsync_len = 45, .vsync_len = 1, | 197 | .hsync_len = 45, .vsync_len = 1, |
198 | 198 | ||
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index 0e943a2d9502..b2b748239f36 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -149,7 +149,7 @@ static struct fb_videomode at91_tft_vga_modes[] = { | |||
149 | .xres = 240, .yres = 320, | 149 | .xres = 240, .yres = 320, |
150 | .pixclock = KHZ2PICOS(4965), | 150 | .pixclock = KHZ2PICOS(4965), |
151 | 151 | ||
152 | .left_margin = 1, .right_margin = 34, | 152 | .left_margin = 1, .right_margin = 33, |
153 | .upper_margin = 1, .lower_margin = 0, | 153 | .upper_margin = 1, .lower_margin = 0, |
154 | .hsync_len = 5, .vsync_len = 1, | 154 | .hsync_len = 5, .vsync_len = 1, |
155 | 155 | ||
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index ced4419e56e2..0d7b20d4285d 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c | |||
@@ -400,7 +400,7 @@ static int atmel_lcdfb_check_var(struct fb_var_screeninfo *var, | |||
400 | var->lower_margin = min_t(u32, var->lower_margin, | 400 | var->lower_margin = min_t(u32, var->lower_margin, |
401 | ATMEL_LCDC_VFP); | 401 | ATMEL_LCDC_VFP); |
402 | var->right_margin = min_t(u32, var->right_margin, | 402 | var->right_margin = min_t(u32, var->right_margin, |
403 | (ATMEL_LCDC_HFP >> ATMEL_LCDC_HFP_OFFSET) + 2); | 403 | (ATMEL_LCDC_HFP >> ATMEL_LCDC_HFP_OFFSET) + 1); |
404 | var->hsync_len = min_t(u32, var->hsync_len, | 404 | var->hsync_len = min_t(u32, var->hsync_len, |
405 | (ATMEL_LCDC_HPW >> ATMEL_LCDC_HPW_OFFSET) + 1); | 405 | (ATMEL_LCDC_HPW >> ATMEL_LCDC_HPW_OFFSET) + 1); |
406 | var->left_margin = min_t(u32, var->left_margin, | 406 | var->left_margin = min_t(u32, var->left_margin, |
@@ -585,7 +585,7 @@ static int atmel_lcdfb_set_par(struct fb_info *info) | |||
585 | lcdc_writel(sinfo, ATMEL_LCDC_TIM1, value); | 585 | lcdc_writel(sinfo, ATMEL_LCDC_TIM1, value); |
586 | 586 | ||
587 | /* Horizontal timing */ | 587 | /* Horizontal timing */ |
588 | value = (info->var.right_margin - 2) << ATMEL_LCDC_HFP_OFFSET; | 588 | value = (info->var.right_margin - 1) << ATMEL_LCDC_HFP_OFFSET; |
589 | value |= (info->var.hsync_len - 1) << ATMEL_LCDC_HPW_OFFSET; | 589 | value |= (info->var.hsync_len - 1) << ATMEL_LCDC_HPW_OFFSET; |
590 | value |= (info->var.left_margin - 1); | 590 | value |= (info->var.left_margin - 1); |
591 | dev_dbg(info->device, " * LCDTIM2 = %08lx\n", value); | 591 | dev_dbg(info->device, " * LCDTIM2 = %08lx\n", value); |