summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-05-03 17:11:33 +0000
committeradrian <adrian@FreeBSD.org>2016-05-03 17:11:33 +0000
commit28c014925a3f81792d7e34d604dec6030f5c5121 (patch)
tree99d0fb15f1b2be736f879769cee6219db7cd2004
parente2d34cc69ec0ee70d9140b329dce96dafe228176 (diff)
downloadFreeBSD-src-28c014925a3f81792d7e34d604dec6030f5c5121.zip
FreeBSD-src-28c014925a3f81792d7e34d604dec6030f5c5121.tar.gz
[asmc] Add support for MacBookPro5,1
Tested by: Johannes Lundberg <johannes@brilliantservice.co.jp> PR: kern/209179 Submitted by: Thomas Brierley <tomxor@gmail.com>
-rw-r--r--sys/dev/asmc/asmc.c6
-rw-r--r--sys/dev/asmc/asmcvar.h28
2 files changed, 34 insertions, 0 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index bbe8bfd..384e733 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -216,6 +216,12 @@ struct asmc_model asmc_models[] = {
},
{
+ "MacBookPro5,1", "Apple SMC MacBook Pro Core 2 Duo (2008/2009)",
+ ASMC_SMS_FUNCS, ASMC_FAN_FUNCS, ASMC_LIGHT_FUNCS,
+ ASMC_MBP5_TEMPS, ASMC_MBP5_TEMPNAMES, ASMC_MBP5_TEMPDESCS
+ },
+
+ {
"MacBookPro8,2", "Apple SMC MacBook Pro (early 2011)",
ASMC_SMS_FUNCS, ASMC_FAN_FUNCS, ASMC_LIGHT_FUNCS,
ASMC_MBP8_TEMPS, ASMC_MBP8_TEMPNAMES, ASMC_MBP8_TEMPDESCS
diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
index f67ee16..26c6203 100644
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -188,6 +188,34 @@ struct asmc_softc {
"Unknown", "Unknown", \
"Wireless Module", }
+#define ASMC_MBP5_TEMPS { "TB0T", "TB1T", "TB2T", "TB3T", "TC0D", \
+ "TC0F", "TC0P", "TG0D", "TG0F", "TG0H", \
+ "TG0P", "TG0T", "TG1H", "TN0D", "TN0P", \
+ "TTF0", "Th2H", "Tm0P", "Ts0P", "Ts0S", \
+ NULL }
+
+#define ASMC_MBP5_TEMPNAMES { "enclosure_bottom_0", "enclosure_bottom_1", \
+ "enclosure_bottom_2", "enclosure_bottom_3", \
+ "cpu_diode", "cpu", \
+ "cpu_pin", "gpu_diode", \
+ "gpu", "gpu_heatsink", \
+ "gpu_pin", "gpu_transistor", \
+ "gpu_2_heatsink", "northbridge_diode", \
+ "northbridge_pin", "unknown", \
+ "heatsink_2", "memory_controller", \
+ "pci_express_slot_pin", "pci_express_slot_unk" }
+
+#define ASMC_MBP5_TEMPDESCS { "Enclosure Bottom 0", "Enclosure Bottom 1", \
+ "Enclosure Bottom 2", "Enclosure Bottom 3", \
+ "CPU Diode", "CPU ???", \
+ "CPU Pin", "GPU Diode", \
+ "GPU ???", "GPU Heatsink", \
+ "GPU Pin", "GPU Transistor", \
+ "GPU 2 Heatsink", "Northbridge Diode", \
+ "Northbridge Pin", "Unknown", \
+ "Heatsink 2", "Memory Controller", \
+ "PCI Express Slot Pin", "PCI Express Slot (unk)" }
+
#define ASMC_MBP8_TEMPS { "TB0T", "TB1T", "TB2T", "TC0C", "TC0D", \
"TC0E", "TC0F", "TC0P", "TC1C", "TC2C", \
"TC3C", "TC4C", "TCFC", "TCGC", "TCSA", \
OpenPOWER on IntegriCloud