Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Mar 2026 07:51:24 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Cc:        tslight <tslight@pm.com>
Subject:   git: 16c82e28404e - main - Add ASMC support for Macbook Pro 8,3
Message-ID:  <69abd8fc.22edc.3d1af6e2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=16c82e28404ec959a7335ceae1d4f43881a50d9e

commit 16c82e28404ec959a7335ceae1d4f43881a50d9e
Author:     tslight <tslight@pm.com>
AuthorDate: 2026-01-27 16:44:40 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-03-07 07:51:15 +0000

    Add ASMC support for Macbook Pro 8,3
    
    Signed-off-by: tslight <tslight@pm.com>
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1992
---
 sys/dev/asmc/asmc.c    |  6 ++++++
 sys/dev/asmc/asmcvar.h | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index be2d0a118bda..17a282ce0b97 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -279,6 +279,12 @@ static const struct asmc_model asmc_models[] = {
 	  ASMC_MBP82_TEMPS, ASMC_MBP82_TEMPNAMES, ASMC_MBP82_TEMPDESCS
 	},
 
+	{
+	  "MacBookPro8,3", "Apple SMC MacBook Pro (early 2011, 17-inch)",
+	  ASMC_SMS_FUNCS, ASMC_FAN_FUNCS2, ASMC_LIGHT_FUNCS,
+	  ASMC_MBP83_TEMPS, ASMC_MBP83_TEMPNAMES, ASMC_MBP83_TEMPDESCS
+	},
+
 	{
 	  "MacBookPro9,1", "Apple SMC MacBook Pro (mid 2012, 15-inch)",
 	  ASMC_SMS_FUNCS_DISABLED, ASMC_FAN_FUNCS, ASMC_LIGHT_FUNCS,
diff --git a/sys/dev/asmc/asmcvar.h b/sys/dev/asmc/asmcvar.h
index 5afc1012849c..95a117f59533 100644
--- a/sys/dev/asmc/asmcvar.h
+++ b/sys/dev/asmc/asmcvar.h
@@ -335,6 +335,39 @@ struct asmc_softc {
 				  "TMBS", "TP0P", "TPCD", "TW0P", "Th1H", \
 				  "Th2H", "Tm0P", "Ts0P", "Ts0S" }
 
+#define ASMC_MBP83_TEMPS	{ "ALSL", "F0Ac", "F1Ac", "IB0R", "IC0R", \
+				  "ID0R", "IG0R", "IO0R", "PCPC", "PCPG", \
+				  "PCPT", "PD0R", "TB1T", "TB2T", "TC0C", \
+				  "TC0D", "TC0P", "TC1C", "TC2C", "TC3C", \
+				  "TC4C", "TG0D", "TG0P", "THSP", "TP0P", \
+				  "TPCD", "Th1H", "Th2H", "Tm0P", "Ts0P", \
+				  "VC0C", "VD0R", "VG0C", "VN0C", "VP0R", NULL }
+
+#define ASMC_MBP83_TEMPNAMES	{ "ambient_light", "fan_leftside", "fan_rightside", \
+				  "battery_current", "cpu_vcorevtt", "dc_current", \
+				  "gpu_voltage", "other", "cpu_package_core", \
+				  "cpu_package_gpu", "cpu_package_total", "dc_in", \
+				  "battery_1", "battery_2", "cpu_die_digital", \
+				  "cpu_die_analog", "cpu_proximity", "cpu_core_1", \
+				  "cpu_core_2", "cpu_core_3", "cpu_core_4", "gpu_die_analog", \
+				  "gpu_proximity", "thunderbolt", "platform_controller", \
+				  "pch_die_digital", "right_fin_stack", "left_fin_stack", \
+				  "dc_in_air_flow", "palm_rest", "cpu_vcore", "dc_in_voltage", \
+				  "gpu_vcore", "intel_gpu_vcore", "pbus_voltage" }
+
+#define ASMC_MBP83_TEMPDESCS	{ "Ambient Light", "Fan Leftside", "Fan Rightside", \
+				  "Battery BMON Current", "CPU VcoreVTT", "DC In AMON Current", \
+				  "GPU Voltage", "Other 5V 3V", "CPU Package Core", \
+				  "CPU Package GPU", "CPU Package Total", "DC In", \
+				  "Battery Sensor 1", "Battery Sensor 2", "CPU Die Digital", \
+				  "CPU Die Analog", "CPU Proximity", "CPU Core 1 DTS", \
+				  "CPU Core 2 DTS", "CPU Core 3 DTS", "CPU Core 4 DTS", \
+				  "GPU Die Analog", "GPU Proximity", "Thunderbolt Proximity", \
+				  "Platform Controller Hub", "PCH Die Digital", \
+				  "Right Fin Stack Proximity", "Left Fin Stack Proximity", \
+				  "DC In Proximity Air Flow", "Palm Rest", "CPU VCore", \
+				  "DC In Voltage", "GPU VCore", "Intel GPU VCore", "PBus Voltage" }
+
 #define ASMC_MBP91_TEMPS	{ "TA0P", "TB0T", "TB1T", "TB2T", "TC0E", \
 				  "TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
 				  "TC4C", "TCGC", "TCSA", "TCXC", "TG0D", \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69abd8fc.22edc.3d1af6e2>