See patch.

Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
Fix the detection for the Winbond W83697SF. Unfortunately the revision
has a slightly different format than that of the W83697UF/UG so we have
to hack around it a bit.

This patch has been verified to work on real hardware by
Idwer Vollering <[EMAIL PROTECTED]> on IRC (thanks!).

Signed-off-by: Uwe Hermann <[EMAIL PROTECTED]>

Index: winbond.c
===================================================================
--- winbond.c	(Revision 2851)
+++ winbond.c	(Arbeitskopie)
@@ -92,8 +92,6 @@
 		{EOT}}},
 	{0x610, "W83L517D/D-F", {
 		{EOT}}},
-	{0x681, "W83697SF/UF/UG", {
-		{EOT}}},
 	{0x708, "W83637HF/HG", {
 		{EOT}}},
 	{0x828, "W83627THF/THG", { /* We assume rev is bits 3..0 of 0x21. */
@@ -251,6 +249,8 @@
 			{0x30,0x60,0x61,0x70,0xf0,EOT},
 			{0x00,0x00,0x00,0x00,0x00,EOT}},
 		{EOT}}},
+	{0x68, "W83697SF/UF/UG", {	/* TODO: Add comment. */
+		{EOT}}},
 
 	/* ID[3..0] */
 	{0xa, "W83877F", {
@@ -289,7 +289,7 @@
 	rev = regval(port, DEVICE_REV_REG);
 	olddevid = regval(port, DEVICE_ID_REG_OLD) & 0x0f;
 
-	if (devid == 0x52)
+	if (devid == 0x52 || devid == 0x68)
 		id = devid;				 /* ID only */
 	else if ((devid == 0x97) && ((rev & 0xf0) == 7))
 		id = (devid << 8) | rev;		 /* ID and rev */

Attachment: signature.asc
Description: Digital signature

-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to