Support for DDR2 DRAM??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I lost half hour when I treated 17 as 0x17 ...

Patch is here:

http://www.assembler.cz/download/sensors_ddr2

Sample SPD DDR2 Rom and specs:
http://www.infineon.com/cgi/ecrm.dll/ecrm/scripts/public_download.jsp?oid=89099&parent_oid=51869

Inline patch is here:
diff -Naur lm_sensors-2.8.8/prog/sensors/chips.c lm_sensors-2.8.8new/prog/sensors/chips.c
--- lm_sensors-2.8.8/prog/sensors/chips.c	2004-09-19 19:09:59.000000000 +0200
+++ lm_sensors-2.8.8new/prog/sensors/chips.c	2004-11-01 22:25:31.000000000 +0100
@@ -2860,6 +2860,10 @@
 					print_label(label, 24);
 					printf("DDR SDRAM DIMM\n");
 					break;
+				case 8:
+					print_label(label, 24);
+					printf("DDR2 SDRAM DIMM\n");
+					break;
 				case 17:
 					print_label(label, 24);
 					printf("RAMBUS RIMM\n");
@@ -2915,6 +2919,9 @@
 		} else if (type == 1) { /* DRDRAM */
 			i = (((int) b) & 0x0f) + (((int) b) >> 4) + (((int) c) & 0x07) - 13;
 			k = 1;
+		} else if (type == 8) { /* DDR2 */
+			i = (((int) a) & 0x0f)  + (((int) b) & 0x0f) - 17;
+			k = ((((int) c) & 0x7) + 1) * ((int) d);
 		} else { /* SDRAM */
 			i = (((int) a) & 0x0f) + (((int) b) & 0x0f) - 17;
 			if (((int) c) <= 8 && ((int) d) <= 8)

> Rudolf,
>     Any chance you might have time to look at this??  I'd be happy to
> test any patches...

Now you can. Thank you

regards

Rudolf



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux