Skip to content

Commit 2aecaff

Browse files
author
tslight
committed
Add ASMC support for Macbook Pro 8,3
1 parent 5b036b2 commit 2aecaff

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

sys/dev/asmc/asmc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,12 @@ static const struct asmc_model asmc_models[] = {
257257
ASMC_MBP82_TEMPS, ASMC_MBP82_TEMPNAMES, ASMC_MBP82_TEMPDESCS
258258
},
259259

260+
{
261+
"MacBookPro8,3", "Apple SMC MacBook Pro (early 2011, 17-inch)",
262+
ASMC_SMS_FUNCS, ASMC_FAN_FUNCS2, ASMC_LIGHT_FUNCS,
263+
ASMC_MBP83_TEMPS, ASMC_MBP83_TEMPNAMES, ASMC_MBP83_TEMPDESCS
264+
},
265+
260266
{
261267
"MacBookPro9,1", "Apple SMC MacBook Pro (mid 2012, 15-inch)",
262268
ASMC_SMS_FUNCS_DISABLED, ASMC_FAN_FUNCS, ASMC_LIGHT_FUNCS,

sys/dev/asmc/asmcvar.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,39 @@ struct asmc_softc {
327327
"TMBS", "TP0P", "TPCD", "TW0P", "Th1H", \
328328
"Th2H", "Tm0P", "Ts0P", "Ts0S" }
329329

330+
#define ASMC_MBP83_TEMPS { "ALSL", "F0Ac", "F1Ac", "IB0R", "IC0R", \
331+
"ID0R", "IG0R", "IO0R", "PCPC", "PCPG", \
332+
"PCPT", "PD0R", "TB1T", "TB2T", "TC0C", \
333+
"TC0D", "TC0P", "TC1C", "TC2C", "TC3C", \
334+
"TC4C", "TG0D", "TG0P", "THSP", "TP0P", \
335+
"TPCD", "Th1H", "Th2H", "Tm0P", "Ts0P", \
336+
"VC0C", "VD0R", "VG0C", "VN0C", "VP0R", NULL }
337+
338+
#define ASMC_MBP83_TEMPNAMES { "ambient_light", "fan_leftside", "fan_rightside", \
339+
"battery_current", "cpu_vcorevtt", "dc_current", \
340+
"gpu_voltage", "other", "cpu_package_core", \
341+
"cpu_package_gpu", "cpu_package_total", "dc_in", \
342+
"battery_1", "battery_2", "cpu_die_digital", \
343+
"cpu_die_analog", "cpu_proximity", "cpu_core_1", \
344+
"cpu_core_2", "cpu_core_3", "cpu_core_4", "gpu_die_analog", \
345+
"gpu_proximity", "thunderbolt", "platform_controller", \
346+
"pch_die_digital", "right_fin_stack", "left_fin_stack", \
347+
"dc_in_air_flow", "palm_rest", "cpu_vcore", "dc_in_voltage", \
348+
"gpu_vcore", "intel_gpu_vcore", "pbus_voltage" }
349+
350+
#define ASMC_MBP83_TEMPDESCS { "Ambient Light", "Fan Leftside", "Fan Rightside", \
351+
"Battery BMON Current", "CPU VcoreVTT", "DC In AMON Current", \
352+
"GPU Voltage", "Other 5V 3V", "CPU Package Core", \
353+
"CPU Package GPU", "CPU Package Total", "DC In", \
354+
"Battery Sensor 1", "Battery Sensor 2", "CPU Die Digital", \
355+
"CPU Die Analog", "CPU Proximity", "CPU Core 1 DTS", \
356+
"CPU Core 2 DTS", "CPU Core 3 DTS", "CPU Core 4 DTS", \
357+
"GPU Die Analog", "GPU Proximity", "Thunderbolt Proximity", \
358+
"Platform Controller Hub", "PCH Die Digital", \
359+
"Right Fin Stack Proximity", "Left Fin Stack Proximity", \
360+
"DC In Proximity Air Flow", "Palm Rest", "CPU VCore", \
361+
"DC In Voltage", "GPU VCore", "Intel GPU VCore", "PBus Voltage" }
362+
330363
#define ASMC_MBP91_TEMPS { "TA0P", "TB0T", "TB1T", "TB2T", "TC0E", \
331364
"TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
332365
"TC4C", "TCGC", "TCSA", "TCXC", "TG0D", \

0 commit comments

Comments
 (0)