Skip to contentSkip to conversation

ASUS P4C800 Deluxe - W83627THF

DISCUSSION Johann Glaser 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi!

A few weeks ago I bought an ASUS P4C800 Deluxe mainboard. It has a W83627THF chip.

Therefore I added the necessary details in the i2c-i801.c and w83781d.c.

Today I wanted to send you a diff but found out, that in the meantime a new lm-sensors version is available. So my diff is not accurate now.

Additionally you seperated the W83627 chips in another file. Since there are some incomplete parts regarding the W83627THF I'll send you my diff anyway. Hopefully some of the lines can help you. They have been taken agains a 2.7.0 version.

BTW: The W83627THF only has 6 voltage-sensors. The layout is as follows:
in0 ... Vcore
in1 ... +12V
in2 ... -3,3V
in3 ... +5V
in7 ... V5SB
in8 ... VBat

in2 and in8 can be displayed directly (3,3V). in7 and in3 have to be multiplied by 1,68. in1 needs a factor of 3,8. For in0 I don't know the factor. in4..in6 are not available.

Some info on fans:
fan2 = CPU
fan3 = Power Supply
It seems that CPU fan has a default divisor of 2. This is too less, when the CPU is in idle mode. One has to set this value to 4.

Temperature Sensors:
temp1 ... Mainboard
temp2 ... CPU

Bye
Hansi

Signature · 11 lines
Johann Glaser   <[email protected]>
   Vienna University of Technology
       Electrical Engineering 
____ http://www.johann-glaser.at/ ____
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm-sensors.ASUS-P4C800.diff
Type: text/x-patch
Size: 7315 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030830/b7800c6d/lm-sensors.ASUS-P4C800.bin
#1 lore raw

Hi!

Quoted 4 lines

As you saw, we've already added support for the ICH5 in 2.8.0.
The w83627hf driver supports the thf as well, and we would
rather enhance the support there than in w83781d.c, which is hopelessly cluttered. If you can give us a patch against CVS for that driver that would be most helpful.

I made a patch agains the current 2.8.0 sources downloaded from the homepage.

Bye
Hansi

Signature · 76 lines
Johann Glaser   <[email protected]>
   Vienna University of Technology
       Electrical Engineering 
____ http://www.johann-glaser.at/ ____
-------------- next part --------------
--- lm_sensors-2.8.0/kernel/chips/w83627hf.c	2003-06-21 18:12:58.000000000 +0200
+++ lm_sensors-2.8.0-new/kernel/chips/w83627hf.c	2003-08-31 12:27:18.000000000 +0200
@@ -25,7 +25,7 @@
 
     Chip	#vin	#fanin	#pwm	#temp	wchipid	vendid	i2c	ISA
     w83627hf	9	3	2	3	0x20	0x5ca3	no	yes(LPC)
-    w83627thf	9	2	?	3	??	0x5ca3	no	yes(LPC)
+    w83627thf	6	3	0	3	0x90	0x5ca3	no	yes(LPC)
     w83697hf	8	2	2	2	0x60	0x5ca3	no	yes(LPC)
 
     For other winbond chips, and for i2c support in the above chips,
@@ -68,7 +68,7 @@
 static unsigned int normal_isa_range[] = { SENSORS_ISA_END };
 
 /* Insmod parameters */
-SENSORS_INSMOD_2(w83627hf, w83697hf);
+SENSORS_INSMOD_3(w83627hf, w83627thf, w83697hf);
 
 static int init = 1;
 MODULE_PARM(init, "i");
@@ -641,7 +641,7 @@
 	       superio_inb(WINB_BASE_REG + 1);
 	*address = val & ~(WINB_EXTENT - 1);
 	if (*address = 0 && force_addr = 0) {
-		printk("vt1211.o: base address not set - use force_addr=0xaddr\n");
+		printk("w83627hf.o: base address not set - use force_addr=0xaddr\n");
 		superio_exit();
 		return -ENODEV;
 	}
@@ -668,11 +668,11 @@
 	if(force_addr)
 		address = force_addr & ~(WINB_EXTENT - 1);
 	if (check_region(address, WINB_EXTENT)) {
-		printk("vt1211.o: region 0x%x already in use!\n", address);
+		printk("w83627hf.o: region 0x%x already in use!\n", address);
 		return -ENODEV;
 	}
 	if(force_addr) {
-		printk("vt1211.o: forcing ISA address 0x%04X\n", address);
+		printk("w83627hf.o: forcing ISA address 0x%04X\n", address);
 		superio_enter();
 		superio_select();
 		superio_outb(WINB_BASE_REG, address >> 8);
@@ -687,7 +687,7 @@
 	else if(val = W697_DEVID)
 		kind = w83697hf;
 	else if(val = W627THF_DEVID)
-		kind = w83627hf;
+		kind = w83627thf;
 		
 	superio_select();
 	if((val = 0x01 & superio_inb(WINB_ACT_REG)) = 0)
@@ -717,6 +717,9 @@
 	if (kind = w83627hf) {
 		type_name = "w83627hf";
 		client_name = "W83627HF chip";
+	} else if (kind = w83627thf) {
+		type_name = "w83627thf";
+		client_name = "W83627THF chip";
 	} else if (kind = w83697hf) {
 		type_name = "w83697hf";
 		client_name = "W83697HF chip";
@@ -1029,7 +1032,7 @@
 			    w83627hf_read_value(client,
 					       W83781D_REG_IN_MAX(i));
 			if ((data->type != w83697hf)
-			    && (data->type != w83627hf) && (i = 6))
+			    && (data->type != w83627hf) && (data->type != w83627thf) && (i = 6))
 				break;
 		}
 		for (i = 1; i <= 3; i++) {
#2 lore raw
In reply to Johann Glaser

thanks for the info.
As you saw, we've already added support for the ICH5 in 2.8.0.
The w83627hf driver supports the thf as well, and we would
rather enhance the support there than in w83781d.c, which is hopelessly cluttered. If you can give us a patch against CVS for that driver that would be most helpful.

Quoted 42 lines · Johann Glaser

Hi!

A few weeks ago I bought an ASUS P4C800 Deluxe mainboard. It has a W83627THF chip.

Therefore I added the necessary details in the i2c-i801.c and w83781d.c.

Today I wanted to send you a diff but found out, that in the meantime a new lm-sensors version is available. So my diff is not accurate now.

Additionally you seperated the W83627 chips in another file. Since there are some incomplete parts regarding the W83627THF I'll send you my diff anyway. Hopefully some of the lines can help you. They have been taken agains a 2.7.0 version.

BTW: The W83627THF only has 6 voltage-sensors. The layout is as follows:
in0 ... Vcore
in1 ... +12V
in2 ... -3,3V
in3 ... +5V
in7 ... V5SB
in8 ... VBat

in2 and in8 can be displayed directly (3,3V). in7 and in3 have to be multiplied by 1,68. in1 needs a factor of 3,8. For in0 I don't know the factor. in4..in6 are not available.

Some info on fans:
fan2 = CPU
fan3 = Power Supply
It seems that CPU fan has a default divisor of 2. This is too less, when the CPU is in idle mode. One has to set this value to 4.

Temperature Sensors:
temp1 ... Mainboard
temp2 ... CPU

Bye
Hansi

#3 lore raw
In reply to Johann Glaser

Thanks.
I took your patch as a starting point and then fixed things up some more. The THF datasheet wasn't available last time I looked but I have it now and that helped a lot as well.

Quoted 16 lines · Johann Glaser

Hi!

Quoted 4 lines

As you saw, we've already added support for the ICH5 in 2.8.0.
The w83627hf driver supports the thf as well, and we would
rather enhance the support there than in w83781d.c, which is hopelessly cluttered. If you can give us a patch against CVS for that driver that would be most helpful.

I made a patch agains the current 2.8.0 sources downloaded from the homepage.

Bye
Hansi