diff options
author | Pawel Osciak <p.osciak@samsung.com> | 2010-08-10 21:02:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:10 -0400 |
commit | 4e591ac620269b3f5fb000d75444bbb397576315 (patch) | |
tree | f8f44566eba2aa426f5519674c8848ec025a4bd7 /drivers/video/s3c-fb.c | |
parent | 9fa424a40186ef3e8a6573aa1c1dd46c94c66012 (diff) |
s3c-fb: separate S5PC100 and S5PV210 framebuffer driver data structures
S5PC100 and S5PV210 framebuffer devices differ slightly in terms of
available registers and their driver data structures have to be separate.
Those differences include dissimilar ways to control shadow register
updates.
Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: InKi Dae <inki.dae@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r-- | drivers/video/s3c-fb.c | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 77f576589a89..5f931b4933bd 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c | |||
@@ -1251,7 +1251,35 @@ static struct s3c_fb_driverdata s3c_fb_data_64xx __devinitdata = { | |||
1251 | .win[4] = &s3c_fb_data_64xx_wins[4], | 1251 | .win[4] = &s3c_fb_data_64xx_wins[4], |
1252 | }; | 1252 | }; |
1253 | 1253 | ||
1254 | static struct s3c_fb_driverdata s3c_fb_data_s5p __devinitdata = { | 1254 | static struct s3c_fb_driverdata s3c_fb_data_s5pc100 __devinitdata = { |
1255 | .variant = { | ||
1256 | .nr_windows = 5, | ||
1257 | .vidtcon = VIDTCON0, | ||
1258 | .wincon = WINCON(0), | ||
1259 | .winmap = WINxMAP(0), | ||
1260 | .keycon = WKEYCON, | ||
1261 | .osd = VIDOSD_BASE, | ||
1262 | .osd_stride = 16, | ||
1263 | .buf_start = VIDW_BUF_START(0), | ||
1264 | .buf_size = VIDW_BUF_SIZE(0), | ||
1265 | .buf_end = VIDW_BUF_END(0), | ||
1266 | |||
1267 | .palette = { | ||
1268 | [0] = 0x2400, | ||
1269 | [1] = 0x2800, | ||
1270 | [2] = 0x2c00, | ||
1271 | [3] = 0x3000, | ||
1272 | [4] = 0x3400, | ||
1273 | }, | ||
1274 | }, | ||
1275 | .win[0] = &s3c_fb_data_64xx_wins[0], | ||
1276 | .win[1] = &s3c_fb_data_64xx_wins[1], | ||
1277 | .win[2] = &s3c_fb_data_64xx_wins[2], | ||
1278 | .win[3] = &s3c_fb_data_64xx_wins[3], | ||
1279 | .win[4] = &s3c_fb_data_64xx_wins[4], | ||
1280 | }; | ||
1281 | |||
1282 | static struct s3c_fb_driverdata s3c_fb_data_s5pv210 __devinitdata = { | ||
1255 | .variant = { | 1283 | .variant = { |
1256 | .nr_windows = 5, | 1284 | .nr_windows = 5, |
1257 | .vidtcon = VIDTCON0, | 1285 | .vidtcon = VIDTCON0, |
@@ -1319,8 +1347,11 @@ static struct platform_device_id s3c_fb_driver_ids[] = { | |||
1319 | .name = "s3c-fb", | 1347 | .name = "s3c-fb", |
1320 | .driver_data = (unsigned long)&s3c_fb_data_64xx, | 1348 | .driver_data = (unsigned long)&s3c_fb_data_64xx, |
1321 | }, { | 1349 | }, { |
1322 | .name = "s5p-fb", | 1350 | .name = "s5pc100-fb", |
1323 | .driver_data = (unsigned long)&s3c_fb_data_s5p, | 1351 | .driver_data = (unsigned long)&s3c_fb_data_s5pc100, |
1352 | }, { | ||
1353 | .name = "s5pv210-fb", | ||
1354 | .driver_data = (unsigned long)&s3c_fb_data_s5pv210, | ||
1324 | }, { | 1355 | }, { |
1325 | .name = "s3c2443-fb", | 1356 | .name = "s3c2443-fb", |
1326 | .driver_data = (unsigned long)&s3c_fb_data_s3c2443, | 1357 | .driver_data = (unsigned long)&s3c_fb_data_s3c2443, |