[PATCH 2.4.8-ac2] Vaio picturebook framebuffer fix...

Stelian Pop (stelian.pop@fr.alcove.com)
Mon, 13 Aug 2001 15:52:10 +0200


Hi,

I don't know if this patch was already posted, but the 2.4.8-ac2
kernel does not compile without this patch (due to name changes
in the aty framebuffer code).

Alan, please apply.

Stelian.

diff -uNr --exclude-from=dontdiff linux-2.4.8-ac2.orig/drivers/video/aty/atyfb_base.c linux-2.4.8-ac2/drivers/video/aty/atyfb_base.c
--- linux-2.4.8-ac2.orig/drivers/video/aty/atyfb_base.c Mon Aug 13 15:27:33 2001
+++ linux-2.4.8-ac2/drivers/video/aty/atyfb_base.c Mon Aug 13 13:55:28 2001
@@ -2086,17 +2086,17 @@
aty_st_le32(OVR_WID_LEFT_RIGHT, hs, info);
udelay(10);

- /* LCD_CONFIG_PANEL */
- hs=aty_ld_lcd(LCD_CONFIG_PANEL,info);
+ /* CONFIG_PANEL */
+ hs=aty_ld_lcd(CONFIG_PANEL,info);
hs|=DONT_SHADOW_HEND ;
- aty_st_lcd(LCD_CONFIG_PANEL, hs, info);
+ aty_st_lcd(CONFIG_PANEL, hs, info);
udelay(10);

#if defined(DEBUG)
printk("LCD_INDEX CONFIG_PANEL LCD_GEN_CTRL POWER_MANAGEMENT\n"
"%08x %08x %08x %08x\n",
aty_ld_le32(LCD_INDEX, info),
- aty_ld_lcd(LCD_CONFIG_PANEL, info),
+ aty_ld_lcd(CONFIG_PANEL, info),
aty_ld_lcd(LCD_GEN_CTRL, info),
aty_ld_lcd(POWER_MANAGEMENT, info),
#endif /* DEBUG */
diff -uNr --exclude-from=dontdiff linux-2.4.8-ac2.orig/drivers/video/aty/mach64.h linux-2.4.8-ac2/drivers/video/aty/mach64.h
--- linux-2.4.8-ac2.orig/drivers/video/aty/mach64.h Mon Aug 13 15:26:40 2001
+++ linux-2.4.8-ac2/drivers/video/aty/mach64.h Mon Aug 13 13:55:46 2001
@@ -1148,6 +1148,8 @@
#define APC_LUT_MN 0x39
#define APC_LUT_OP 0x3A

+/* Values in CONFIG_PANEL */
+#define DONT_SHADOW_HEND 0x00004000

/* Values in LCD_MISC_CNTL */
#define BIAS_MOD_LEVEL_MASK 0x0000ff00

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
|---------------- Free Software Engineer -----------------|
| Alcôve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|------------- Alcôve, liberating software ---------------|
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/