Commit f28ef573 authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Linus Torvalds

s3c2410fb: remove lcdcon3 register from s3c2410fb_display

This patch removes unused lcdcon3 register from the
s3c2410fb_display structure.
Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarAntonino Daplas <adaplas@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9939a481
...@@ -180,13 +180,10 @@ static struct s3c2410fb_display __initdata amlm5900_lcd_info = { ...@@ -180,13 +180,10 @@ static struct s3c2410fb_display __initdata amlm5900_lcd_info = {
.left_margin = 1 << (4 + 3), .left_margin = 1 << (4 + 3),
.right_margin = 8 << 3, .right_margin = 8 << 3,
.regs = {
.lcdcon1 = 0x00008225, .lcdcon1 = 0x00008225,
.lcdcon2 = 0x0027c000, .lcdcon2 = 0x0027c000,
.lcdcon3 = 0x00182708,
.lcdcon4 = 0x00000002, .lcdcon4 = 0x00000002,
.lcdcon5 = 0x00000001, .lcdcon5 = 0x00000001,
}
}; };
static struct s3c2410fb_mach_info __initdata amlm5900_fb_info = { static struct s3c2410fb_mach_info __initdata amlm5900_fb_info = {
......
...@@ -479,13 +479,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -479,13 +479,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.bpp = 4, .bpp = 4,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -498,13 +495,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -498,13 +495,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -517,13 +511,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -517,13 +511,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -536,13 +527,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -536,13 +527,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -555,13 +543,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -555,13 +543,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -574,13 +559,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -574,13 +559,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -593,13 +575,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -593,13 +575,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -612,13 +591,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -612,13 +591,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
{ {
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
...@@ -631,13 +607,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = { ...@@ -631,13 +607,10 @@ static struct s3c2410fb_display __initdata bast_lcd_info[] = {
.left_margin = 40, .left_margin = 40,
.right_margin = 20, .right_margin = 20,
.regs = {
.lcdcon1 = 0x00000176, .lcdcon1 = 0x00000176,
.lcdcon2 = 0x1d77c7c2, .lcdcon2 = 0x1d77c7c2,
.lcdcon3 = 0x013a7f13,
.lcdcon4 = 0x00000057, .lcdcon4 = 0x00000057,
.lcdcon5 = 0x00014b02, .lcdcon5 = 0x00014b02,
}
}, },
}; };
......
...@@ -134,7 +134,6 @@ static struct s3c2410_udc_mach_info h1940_udc_cfg __initdata = { ...@@ -134,7 +134,6 @@ static struct s3c2410_udc_mach_info h1940_udc_cfg __initdata = {
* Set lcd on or off * Set lcd on or off
**/ **/
static struct s3c2410fb_display h1940_lcd __initdata = { static struct s3c2410fb_display h1940_lcd __initdata = {
.regs={
.lcdcon1= S3C2410_LCDCON1_TFT16BPP | \ .lcdcon1= S3C2410_LCDCON1_TFT16BPP | \
S3C2410_LCDCON1_TFT | \ S3C2410_LCDCON1_TFT | \
S3C2410_LCDCON1_CLKVAL(0x0C), S3C2410_LCDCON1_CLKVAL(0x0C),
...@@ -144,17 +143,12 @@ static struct s3c2410fb_display h1940_lcd __initdata = { ...@@ -144,17 +143,12 @@ static struct s3c2410fb_display h1940_lcd __initdata = {
S3C2410_LCDCON2_VFPD(6) | \ S3C2410_LCDCON2_VFPD(6) | \
S3C2410_LCDCON2_VSPW(0), S3C2410_LCDCON2_VSPW(0),
.lcdcon3= S3C2410_LCDCON3_HBPD(19) | \
S3C2410_LCDCON3_HOZVAL(239) | \
S3C2410_LCDCON3_HFPD(7),
.lcdcon4= S3C2410_LCDCON4_MVAL(0) | \ .lcdcon4= S3C2410_LCDCON4_MVAL(0) | \
S3C2410_LCDCON4_HSPW(3), S3C2410_LCDCON4_HSPW(3),
.lcdcon5= S3C2410_LCDCON5_FRM565 | \ .lcdcon5= S3C2410_LCDCON5_FRM565 | \
S3C2410_LCDCON5_INVVLINE | \ S3C2410_LCDCON5_INVVLINE | \
S3C2410_LCDCON5_HWSWP, S3C2410_LCDCON5_HWSWP,
},
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
.width = 240, .width = 240,
......
...@@ -98,8 +98,6 @@ static struct s3c2410_uartcfg smdk2410_uartcfgs[] = { ...@@ -98,8 +98,6 @@ static struct s3c2410_uartcfg smdk2410_uartcfgs[] = {
static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
{ {
/* Configuration for 640x480 SHARP LQ080V3DG01 */ /* Configuration for 640x480 SHARP LQ080V3DG01 */
.regs = {
.lcdcon1 = S3C2410_LCDCON1_TFT16BPP | .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
S3C2410_LCDCON1_TFT | S3C2410_LCDCON1_TFT |
S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */ S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */
...@@ -109,10 +107,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -109,10 +107,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
S3C2410_LCDCON2_VFPD(10) | /* 11 */ S3C2410_LCDCON2_VFPD(10) | /* 11 */
S3C2410_LCDCON2_VSPW(14), /* 15 */ S3C2410_LCDCON2_VSPW(14), /* 15 */
.lcdcon3 = S3C2410_LCDCON3_HBPD(43) | /* 44 */
S3C2410_LCDCON3_HOZVAL(639) | /* 640 */
S3C2410_LCDCON3_HFPD(115), /* 116 */
.lcdcon4 = S3C2410_LCDCON4_MVAL(0) | .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
S3C2410_LCDCON4_HSPW(95), /* 96 */ S3C2410_LCDCON4_HSPW(95), /* 96 */
...@@ -121,7 +115,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -121,7 +115,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVFRAME |
S3C2410_LCDCON5_PWREN | S3C2410_LCDCON5_PWREN |
S3C2410_LCDCON5_HWSWP, S3C2410_LCDCON5_HWSWP,
},
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
.width = 640, .width = 640,
...@@ -135,8 +128,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -135,8 +128,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
}, },
{ {
/* Configuration for 480x640 toppoly TD028TTEC1 */ /* Configuration for 480x640 toppoly TD028TTEC1 */
.regs = {
.lcdcon1 = S3C2410_LCDCON1_TFT16BPP | .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
S3C2410_LCDCON1_TFT | S3C2410_LCDCON1_TFT |
S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */ S3C2410_LCDCON1_CLKVAL(0x01), /* HCLK/4 */
...@@ -146,10 +137,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -146,10 +137,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
S3C2410_LCDCON2_VFPD(3) | /* 4 */ S3C2410_LCDCON2_VFPD(3) | /* 4 */
S3C2410_LCDCON2_VSPW(1), /* 2 */ S3C2410_LCDCON2_VSPW(1), /* 2 */
.lcdcon3 = S3C2410_LCDCON3_HBPD(7) | /* 8 */
S3C2410_LCDCON3_HOZVAL(479) | /* 479 */
S3C2410_LCDCON3_HFPD(23), /* 24 */
.lcdcon4 = S3C2410_LCDCON4_MVAL(0) | .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
S3C2410_LCDCON4_HSPW(7), /* 8 */ S3C2410_LCDCON4_HSPW(7), /* 8 */
...@@ -158,7 +145,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -158,7 +145,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVFRAME |
S3C2410_LCDCON5_PWREN | S3C2410_LCDCON5_PWREN |
S3C2410_LCDCON5_HWSWP, S3C2410_LCDCON5_HWSWP,
},
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
.width = 480, .width = 480,
...@@ -171,8 +157,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -171,8 +157,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
}, },
{ {
/* Config for 240x320 LCD */ /* Config for 240x320 LCD */
.regs = {
.lcdcon1 = S3C2410_LCDCON1_TFT16BPP | .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
S3C2410_LCDCON1_TFT | S3C2410_LCDCON1_TFT |
S3C2410_LCDCON1_CLKVAL(0x04), S3C2410_LCDCON1_CLKVAL(0x04),
...@@ -182,10 +166,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -182,10 +166,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
S3C2410_LCDCON2_VFPD(6) | S3C2410_LCDCON2_VFPD(6) |
S3C2410_LCDCON2_VSPW(3), S3C2410_LCDCON2_VSPW(3),
.lcdcon3 = S3C2410_LCDCON3_HBPD(12) |
S3C2410_LCDCON3_HOZVAL(239) |
S3C2410_LCDCON3_HFPD(7),
.lcdcon4 = S3C2410_LCDCON4_MVAL(0) | .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
S3C2410_LCDCON4_HSPW(3), S3C2410_LCDCON4_HSPW(3),
...@@ -194,7 +174,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = { ...@@ -194,7 +174,6 @@ static struct s3c2410fb_display qt2410_lcd_cfg[] __initdata = {
S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVFRAME |
S3C2410_LCDCON5_PWREN | S3C2410_LCDCON5_PWREN |
S3C2410_LCDCON5_HWSWP, S3C2410_LCDCON5_HWSWP,
},
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
.width = 240, .width = 240,
......
...@@ -111,7 +111,6 @@ static struct s3c2410_uartcfg rx3715_uartcfgs[] = { ...@@ -111,7 +111,6 @@ static struct s3c2410_uartcfg rx3715_uartcfgs[] = {
/* framebuffer lcd controller information */ /* framebuffer lcd controller information */
static struct s3c2410fb_display rx3715_lcdcfg __initdata = { static struct s3c2410fb_display rx3715_lcdcfg __initdata = {
.regs = {
.lcdcon1 = S3C2410_LCDCON1_TFT16BPP | \ .lcdcon1 = S3C2410_LCDCON1_TFT16BPP | \
S3C2410_LCDCON1_TFT | \ S3C2410_LCDCON1_TFT | \
S3C2410_LCDCON1_CLKVAL(0x0C), S3C2410_LCDCON1_CLKVAL(0x0C),
...@@ -121,17 +120,12 @@ static struct s3c2410fb_display rx3715_lcdcfg __initdata = { ...@@ -121,17 +120,12 @@ static struct s3c2410fb_display rx3715_lcdcfg __initdata = {
S3C2410_LCDCON2_VFPD(6) | \ S3C2410_LCDCON2_VFPD(6) | \
S3C2410_LCDCON2_VSPW(2), S3C2410_LCDCON2_VSPW(2),
.lcdcon3 = S3C2410_LCDCON3_HBPD(35) | \
S3C2410_LCDCON3_HOZVAL(239) | \
S3C2410_LCDCON3_HFPD(35),
.lcdcon4 = S3C2410_LCDCON4_MVAL(0) | \ .lcdcon4 = S3C2410_LCDCON4_MVAL(0) | \
S3C2410_LCDCON4_HSPW(7), S3C2410_LCDCON4_HSPW(7),
.lcdcon5 = S3C2410_LCDCON5_INVVLINE | .lcdcon5 = S3C2410_LCDCON5_INVVLINE |
S3C2410_LCDCON5_FRM565 | S3C2410_LCDCON5_FRM565 |
S3C2410_LCDCON5_HWSWP, S3C2410_LCDCON5_HWSWP,
},
.type = S3C2410_LCDCON1_TFT, .type = S3C2410_LCDCON1_TFT,
.width = 240, .width = 240,
......
...@@ -104,7 +104,6 @@ static struct s3c2410_uartcfg smdk2440_uartcfgs[] __initdata = { ...@@ -104,7 +104,6 @@ static struct s3c2410_uartcfg smdk2440_uartcfgs[] __initdata = {
/* LCD driver info */ /* LCD driver info */
static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = { static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
.regs = {
.lcdcon1 = S3C2410_LCDCON1_TFT16BPP | .lcdcon1 = S3C2410_LCDCON1_TFT16BPP |
S3C2410_LCDCON1_TFT | S3C2410_LCDCON1_TFT |
...@@ -115,10 +114,6 @@ static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = { ...@@ -115,10 +114,6 @@ static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
S3C2410_LCDCON2_VFPD(6) | S3C2410_LCDCON2_VFPD(6) |
S3C2410_LCDCON2_VSPW(3), S3C2410_LCDCON2_VSPW(3),
.lcdcon3 = S3C2410_LCDCON3_HBPD(19) |
S3C2410_LCDCON3_HOZVAL(239) |
S3C2410_LCDCON3_HFPD(7),
.lcdcon4 = S3C2410_LCDCON4_MVAL(0) | .lcdcon4 = S3C2410_LCDCON4_MVAL(0) |
S3C2410_LCDCON4_HSPW(3), S3C2410_LCDCON4_HSPW(3),
...@@ -127,7 +122,6 @@ static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = { ...@@ -127,7 +122,6 @@ static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
S3C2410_LCDCON5_INVVFRAME | S3C2410_LCDCON5_INVVFRAME |
S3C2410_LCDCON5_PWREN | S3C2410_LCDCON5_PWREN |
S3C2410_LCDCON5_HWSWP, S3C2410_LCDCON5_HWSWP,
},
.type = S3C2410_LCDCON1_TFT16BPP, .type = S3C2410_LCDCON1_TFT16BPP,
......
...@@ -245,7 +245,7 @@ static int s3c2410fb_check_var(struct fb_var_screeninfo *var, ...@@ -245,7 +245,7 @@ static int s3c2410fb_check_var(struct fb_var_screeninfo *var,
default: default:
case 16: case 16:
if (display->regs.lcdcon5 & S3C2410_LCDCON5_FRM565) { if (display->lcdcon5 & S3C2410_LCDCON5_FRM565) {
/* 16 bpp, 565 format */ /* 16 bpp, 565 format */
var->red.offset = 11; var->red.offset = 11;
var->green.offset = 5; var->green.offset = 5;
...@@ -796,7 +796,6 @@ static int __init s3c2410fb_probe(struct platform_device *pdev) ...@@ -796,7 +796,6 @@ static int __init s3c2410fb_probe(struct platform_device *pdev)
struct s3c2410fb_info *info; struct s3c2410fb_info *info;
struct s3c2410fb_display *display; struct s3c2410fb_display *display;
struct fb_info *fbinfo; struct fb_info *fbinfo;
struct s3c2410fb_hw *mregs;
struct resource *res; struct resource *res;
int ret; int ret;
int irq; int irq;
...@@ -812,7 +811,6 @@ static int __init s3c2410fb_probe(struct platform_device *pdev) ...@@ -812,7 +811,6 @@ static int __init s3c2410fb_probe(struct platform_device *pdev)
} }
display = mach_info->displays + mach_info->default_display; display = mach_info->displays + mach_info->default_display;
mregs = &display->regs;
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0) {
...@@ -855,7 +853,10 @@ static int __init s3c2410fb_probe(struct platform_device *pdev) ...@@ -855,7 +853,10 @@ static int __init s3c2410fb_probe(struct platform_device *pdev)
strcpy(fbinfo->fix.id, driver_name); strcpy(fbinfo->fix.id, driver_name);
memcpy(&info->regs, &display->regs, sizeof(info->regs)); info->regs.lcdcon1 = display->lcdcon1;
info->regs.lcdcon2 = display->lcdcon2;
info->regs.lcdcon4 = display->lcdcon4;
info->regs.lcdcon5 = display->lcdcon5;
/* Stop the video and unset ENVID if set */ /* Stop the video and unset ENVID if set */
info->regs.lcdcon1 &= ~S3C2410_LCDCON1_ENVID; info->regs.lcdcon1 &= ~S3C2410_LCDCON1_ENVID;
...@@ -892,14 +893,14 @@ static int __init s3c2410fb_probe(struct platform_device *pdev) ...@@ -892,14 +893,14 @@ static int __init s3c2410fb_probe(struct platform_device *pdev)
fbinfo->var.right_margin = display->right_margin; fbinfo->var.right_margin = display->right_margin;
fbinfo->var.upper_margin = fbinfo->var.upper_margin =
S3C2410_LCDCON2_GET_VBPD(mregs->lcdcon2) + 1; S3C2410_LCDCON2_GET_VBPD(display->lcdcon2) + 1;
fbinfo->var.lower_margin = fbinfo->var.lower_margin =
S3C2410_LCDCON2_GET_VFPD(mregs->lcdcon2) + 1; S3C2410_LCDCON2_GET_VFPD(display->lcdcon2) + 1;
fbinfo->var.vsync_len = fbinfo->var.vsync_len =
S3C2410_LCDCON2_GET_VSPW(mregs->lcdcon2) + 1; S3C2410_LCDCON2_GET_VSPW(display->lcdcon2) + 1;
fbinfo->var.hsync_len = fbinfo->var.hsync_len =
S3C2410_LCDCON4_GET_HSPW(mregs->lcdcon4) + 1; S3C2410_LCDCON4_GET_HSPW(display->lcdcon4) + 1;
fbinfo->var.red.offset = 11; fbinfo->var.red.offset = 11;
fbinfo->var.green.offset = 5; fbinfo->var.green.offset = 5;
......
...@@ -44,7 +44,10 @@ struct s3c2410fb_display { ...@@ -44,7 +44,10 @@ struct s3c2410fb_display {
unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */ unsigned short vsync_len; /* value in lines (TFT) or 0 (STN) */
/* lcd configuration registers */ /* lcd configuration registers */
struct s3c2410fb_hw regs; unsigned long lcdcon1;
unsigned long lcdcon2;
unsigned long lcdcon4;
unsigned long lcdcon5;
}; };
struct s3c2410fb_mach_info { struct s3c2410fb_mach_info {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment