[DCON] Update register initialisation for DCON ASIC

David Woodhouse dwmw2 at infradead.org
Tue Nov 7 22:38:35 EST 2006


Commit:     38a240ed6679c756244147104f019587a676a3b6
Parent:     46a2fdc3175238b296407f19a8741638bbba821b
commit 38a240ed6679c756244147104f019587a676a3b6
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sat Nov 4 15:08:44 2006 +0800
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat Nov 4 15:08:44 2006 +0800

    [DCON] Update register initialisation for DCON ASIC
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/video/geode/gxfb_dcon.c |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/drivers/video/geode/gxfb_dcon.c b/drivers/video/geode/gxfb_dcon.c
index 936f3ac..c7e7425 100644
--- a/drivers/video/geode/gxfb_dcon.c
+++ b/drivers/video/geode/gxfb_dcon.c
@@ -460,11 +460,13 @@ static int dcon_probe(struct i2c_adapter
 		/* Initialize the DCON registers */
 
 		/* Start with work-arounds for DCON ASIC */
-		i2c_smbus_write_word_data(client, 0x4b, 0x008c);
+		i2c_smbus_write_word_data(client, 0x4b, 0x00cc);
+		i2c_smbus_write_word_data(client, 0x4b, 0x00cc);
+		i2c_smbus_write_word_data(client, 0x4b, 0x00cc);
 		i2c_smbus_write_word_data(client, 0x0b, 0x007a);
 		i2c_smbus_write_word_data(client, 0x36, 0x025c);
 		i2c_smbus_write_word_data(client, 0x37, 0x025e);
-
+		
 		/* Colour swizzle, AA, no passthrough, backlight */
 
 		dcon_disp_mode = MODE_PASSTHRU | MODE_BL_ENABLE |
@@ -475,16 +477,9 @@ static int dcon_probe(struct i2c_adapter
 
 		/* Initialise SDRAM */
 
-		i2c_smbus_write_word_data(client, 0x3a, 0xe040);
-		i2c_smbus_write_word_data(client, 0x3b, 0x0028);
-		i2c_smbus_write_word_data(client, 0x3c, 0x0000);
-		i2c_smbus_write_word_data(client, 0x3d, 0x0000);
-		i2c_smbus_write_word_data(client, 0x3e, 0x400f);
-		i2c_smbus_write_word_data(client, 0x3f, 0x04b0);
-		i2c_smbus_write_word_data(client, 0x40, 0x0384);
+		i2c_smbus_write_word_data(client, 0x3b, 0x002b);
 		i2c_smbus_write_word_data(client, 0x41, 0x0101);
 		i2c_smbus_write_word_data(client, 0x42, 0x0101);
-		i2c_smbus_write_word_data(client, 0x43, 0x0101);
 	}
 
 	/* Set the scanline to interrupt on during resume */


More information about the Commits-kernel mailing list