summaryrefslogtreecommitdiff
path: root/drivers/video/platinumfb.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-12-13 09:48:35 +0300
committerPaul Mackerras <paulus@samba.org>2006-01-09 06:53:51 +0300
commit9cf84d7c97992dbe5360b241327341c07ce30fc9 (patch)
treede606aa77fb0d8c4d4c32106ac4fe7fa287cf27e /drivers/video/platinumfb.h
parentf75225d0a01e4f468b0395b02e549d2763bbabfb (diff)
downloadlinux-9cf84d7c97992dbe5360b241327341c07ce30fc9.tar.xz
[PATCH] powerpc: Fix platinumfb for some modes
The platinumfb driver used only on some powermacs has an issue with some video modes & limited VRAM. This patch fixes it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/video/platinumfb.h')
-rw-r--r--drivers/video/platinumfb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/platinumfb.h b/drivers/video/platinumfb.h
index 2834fc1c344b..f6bd77cafd17 100644
--- a/drivers/video/platinumfb.h
+++ b/drivers/video/platinumfb.h
@@ -158,7 +158,9 @@ static struct platinum_regvals platinum_reg_init_14 = {
/* 832x624, 75Hz (13) */
static struct platinum_regvals platinum_reg_init_13 = {
0x70,
- { 864, 1680, 3360 }, /* MacOS does 1680 instead of 1696 to fit 16bpp in 1MB */
+ { 864, 1680, 3344 }, /* MacOS does 1680 instead of 1696 to fit 16bpp in 1MB,
+ * and we use 3344 instead of 3360 to fit in 2Mb
+ */
{ 0xff0, 4, 0, 0, 0, 0, 0x299, 0,
0, 0x21e, 0x120, 0x10, 0x23f, 0x1f, 0x25, 0x37,
0x8a, 0x22a, 0x23e, 0x536, 0x534, 4, 9, 0x52,