[DCON] Default to turning anti-aliasing off

David Woodhouse dwmw2 at infradead.unroutableorg
Wed Nov 8 11:08:01 EST 2006


Commit:     06dd74c7aee94f41c0f67743114ee830e085ff7f
Parent:     0cb7e74ca7c3f9e4c3ad8150b9d363b3143893c5
commit 06dd74c7aee94f41c0f67743114ee830e085ff7f
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Thu Nov 9 00:12:17 2006 +0800
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu Nov 9 00:12:17 2006 +0800

    [DCON] Default to turning anti-aliasing off
    
    Not properly functional on first batch of DCON ASICS at 2.5v
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/video/geode/gxfb_dcon.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/video/geode/gxfb_dcon.c b/drivers/video/geode/gxfb_dcon.c
index b269a88..fb32dcb 100644
--- a/drivers/video/geode/gxfb_dcon.c
+++ b/drivers/video/geode/gxfb_dcon.c
@@ -36,6 +36,10 @@ module_param(resumeline, int, 0444);
 static int noinit;
 module_param(noinit, int, 0444);
 
+/* Default off since it doesn't work on DCON ASIC in B-test OLPC board */
+static int useaa;
+module_param(useaa, int, 0444);
+
 /* ioctl() defines */
 
 #define DCONIOC_SOURCE		_IOW('d', 0, int)
@@ -139,7 +143,9 @@ static int dcon_set_output(int arg)
 	}
 	else {
 		dcon_disp_mode &= ~(MODE_MONO_LUMA);
-		dcon_disp_mode |= (MODE_CSWIZZLE | MODE_COL_AA);
+		dcon_disp_mode |= MODE_CSWIZZLE;
+		if (useaa)
+			dcon_disp_mode |= MODE_COL_AA;
 	}
 
 	dcon_write(DCON_REG_MODE, dcon_disp_mode);
@@ -472,7 +478,9 @@ static int dcon_probe(struct i2c_adapter
 		/* Colour swizzle, AA, no passthrough, backlight */
 
 		dcon_disp_mode = MODE_PASSTHRU | MODE_BL_ENABLE |
-			MODE_CSWIZZLE | MODE_COL_AA;
+			MODE_CSWIZZLE;
+		if (useaa)
+			dcon_disp_mode |= MODE_COL_AA;
 
 		i2c_smbus_write_word_data(client, DCON_REG_MODE,
 					  dcon_disp_mode);


More information about the Commits-kernel mailing list