diff options
author | Valentin Sitdikov <valentin.sitdikov@siemens.com> | 2009-12-15 19:46:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-16 10:20:01 -0500 |
commit | 2ec509b96cce5e6d19ee43fdd818eab78e76328d (patch) | |
tree | 7cc89e4ee2d10cc63327490905633c04a617ba18 /drivers/video/mb862xx/mb862xxfb.c | |
parent | d2a34c13e7ccec5d06eafd60e6f80ea531b34668 (diff) |
mb862xxfb: add acceleration support for Coral-P/Coral-PA. * imageblt * copyarea * fillrect
[akpm@linux-foundation.org: clean up comments, remove do-nothing tests, use min()]
[akpm@linux-foundation.org: fix Alexandr's email address]
[akpm@linux-foundation.org: export mb862xxfb_init_accel]
Signed-off-by: Valentin Sitdikov <valentin.sitdikov@siemens.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/mb862xx/mb862xxfb.c')
-rw-r--r-- | drivers/video/mb862xx/mb862xxfb.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/video/mb862xx/mb862xxfb.c b/drivers/video/mb862xx/mb862xxfb.c index a28e3cfbbf70..fabb0c59a211 100644 --- a/drivers/video/mb862xx/mb862xxfb.c +++ b/drivers/video/mb862xx/mb862xxfb.c | |||
@@ -214,6 +214,8 @@ static int mb862xxfb_set_par(struct fb_info *fbi) | |||
214 | unsigned long reg, sc; | 214 | unsigned long reg, sc; |
215 | 215 | ||
216 | dev_dbg(par->dev, "%s\n", __func__); | 216 | dev_dbg(par->dev, "%s\n", __func__); |
217 | if (par->type == BT_CORALP) | ||
218 | mb862xxfb_init_accel(fbi, fbi->var.xres); | ||
217 | 219 | ||
218 | if (par->pre_init) | 220 | if (par->pre_init) |
219 | return 0; | 221 | return 0; |
@@ -453,6 +455,18 @@ static ssize_t mb862xxfb_show_dispregs(struct device *dev, | |||
453 | ptr += sprintf(ptr, "%08x = %08x\n", | 455 | ptr += sprintf(ptr, "%08x = %08x\n", |
454 | reg, inreg(disp, reg)); | 456 | reg, inreg(disp, reg)); |
455 | 457 | ||
458 | for (reg = 0x400; reg <= 0x410; reg += 4) | ||
459 | ptr += sprintf(ptr, "geo %08x = %08x\n", | ||
460 | reg, inreg(geo, reg)); | ||
461 | |||
462 | for (reg = 0x400; reg <= 0x410; reg += 4) | ||
463 | ptr += sprintf(ptr, "draw %08x = %08x\n", | ||
464 | reg, inreg(draw, reg)); | ||
465 | |||
466 | for (reg = 0x440; reg <= 0x450; reg += 4) | ||
467 | ptr += sprintf(ptr, "draw %08x = %08x\n", | ||
468 | reg, inreg(draw, reg)); | ||
469 | |||
456 | return ptr - buf; | 470 | return ptr - buf; |
457 | } | 471 | } |
458 | 472 | ||