asmc: Patch to add MacBook Pro 9,2 support

PR:		211513
Submitted by:	William Theesfeld Jr <wtheesfeld@mailbox.org>
Reported by:	William Theesfeld Jr <wtheesfeld@mailbox.org>
MFC after:	1 week
This commit is contained in:
David Bright 2019-01-04 18:21:49 +00:00
parent 0598e55ea3
commit 98ae4866ba
2 changed files with 27 additions and 0 deletions

View File

@ -230,6 +230,12 @@ struct asmc_model asmc_models[] = {
ASMC_MBP82_TEMPS, ASMC_MBP82_TEMPNAMES, ASMC_MBP82_TEMPDESCS
},
{
"MacBookPro9,2", "Apple SMC MacBook Pro (mid 2012)",
ASMC_SMS_FUNCS_DISABLED, ASMC_FAN_FUNCS, ASMC_LIGHT_FUNCS,
ASMC_MBP9_TEMPS, ASMC_MBP9_TEMPNAMES, ASMC_MBP9_TEMPDESCS
},
{
"MacBookPro11,2", "Apple SMC MacBook Pro Retina Core i7 (2013/2014)",
ASMC_SMS_FUNCS_DISABLED, ASMC_FAN_FUNCS2, ASMC_LIGHT_FUNCS,

View File

@ -257,6 +257,27 @@ struct asmc_softc {
"TMBS", "TP0P", "TPCD", "TW0P", "Th1H", \
"Th2H", "Tm0P", "Ts0P", "Ts0S" }
#define ASMC_MBP9_TEMPS { "Ts0P", "Ts0S", "TA0P", "TB1T", "TB2T", \
"TB0T", "TC1C", "TC2C", "TC0E", "TC0F", \
"TC0J", "TC0P", "TCFC", "TCGC", "TCSA", \
"TCTD", "TCXC", "TG1D", "TM0P", "TM0S", \
"TPCD", NULL }
#define ASMC_MBP9_TEMPNAMES { "Ts0P", "Ts0S", "TA0P", "TB1T", "TB2T", \
"TB0T", "TC1C", "TC2C", "TC0E", "TC0F", \
"TC0J", "TC0P", "TCFC", "TCGC", "TCSA", \
"TCTD", "TCXC", "TG1D", "TM0P", "TM0S", \
"TPCD" }
#define ASMC_MBP9_TEMPDESCS { "Palm Rest", "Memory Proximity", "Airflow 1", \
"Battery 1", "Battery 2", "Battery TS_MAX", \
"CPU Core 1", "CPU Core 2", "CPU1", "CPU1", \
"TC0J", "CPU 1 Proximity", "TCFC", \
"PECI GPU", "PECI SA", "TCTD", "PECI CPU", \
"GPU Die", "Memory Bank A1", "Memory Module A1", \
"PCH Die" }
#define ASMC_MBP112_TEMPS { "TB0T", "TB1T", "TB2T", "TBXT", "TC0E", \
"TC0F", "TC0P", "TC1C", "TC2C", "TC3C", \
"TC4C", "TCFC", "TCGC", "TCSA", "TCTD", \