* [lm-sensors] [PATCH 2/2] k8temp: minor fixes for CPU families 0x10
@ 2008-11-18 8:46 Andreas Herrmann
0 siblings, 0 replies; only message in thread
From: Andreas Herrmann @ 2008-11-18 8:46 UTC (permalink / raw)
To: lm-sensors
- correct address for "Reported Temperature Control Register"
- correct Tctl_max for family 0x11
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
---
drivers/hwmon/k8temp.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c
index a949a86..fa30f8b 100644
--- a/drivers/hwmon/k8temp.c
+++ b/drivers/hwmon/k8temp.c
@@ -37,7 +37,7 @@
#define FAM_10_TEMP_FROM_REG(val) (((val) >> 21) * 125)
#define FAM_F_REG_TEMP 0xe4
-#define FAM_10_REG_TEMP 0xa5
+#define FAM_10_REG_TEMP 0xa4
#define REG_CPUID 0xfc
/* real bitpos */
@@ -196,9 +196,15 @@ static int __devinit setup_fam_10(struct pci_dev *pdev, struct k8temp_data *data
{
/* we need max temp */
data->sensorsp = SEL_TEMPMAX;
- data->tcontrol_max = 70000;
- data->name = (data->fam = 0x11) ? "fam11temp" : "fam10temp";
+ if (data->fam = 0x10) {
+ data->name = "fam10temp";
+ data->tcontrol_max = 70000;
+ } else if (data->fam = 0x11) {
+ data->name = "fam11temp";
+ data->tcontrol_max = 100000;
+ } else
+ BUG();
return 0;
}
--
1.6.0.3
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-18 8:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 8:46 [lm-sensors] [PATCH 2/2] k8temp: minor fixes for CPU families 0x10 Andreas Herrmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.