asmc: Add support for Mac mini 2,1

PR:		235798
Submitted by:	Trev <fbsdbugs4@sentry.org>
Reported by:	Trev <fbsdbugs4@sentry.org>
MFC after:	1 week
This commit is contained in:
dab 2019-02-25 21:59:01 +00:00
parent 7b71e80a0f
commit 9512916440
2 changed files with 27 additions and 0 deletions

View File

@ -259,6 +259,15 @@ struct asmc_model asmc_models[] = {
ASMC_MM_TEMPS, ASMC_MM_TEMPNAMES, ASMC_MM_TEMPDESCS
},
/* The Mac Mini 2,1 has no SMS */
{
"Macmini2,1", "Apple SMC Mac Mini 2,1",
ASMC_SMS_FUNCS_DISABLED,
ASMC_FAN_FUNCS,
ASMC_LIGHT_FUNCS_DISABLED,
ASMC_MM21_TEMPS, ASMC_MM21_TEMPNAMES, ASMC_MM21_TEMPDESCS
},
/* The Mac Mini 3,1 has no SMS */
{
"Macmini3,1", "Apple SMC Mac Mini 3,1",

View File

@ -341,6 +341,24 @@ struct asmc_softc {
#define ASMC_MM_TEMPDESCS { "Northbridge Point 1", \
"Northbridge Point 2" }
#define ASMC_MM21_TEMPS { "TA0P", "TC0D", \
"TC0H", "TC0P", \
"TC1P", "TN0P", \
"TN1P", NULL }
#define ASMC_MM21_TEMPNAMES { "ambient_air", "cpu_die", \
"cpu_heatsink", "cpu_proximity1", \
"cpu_proximity2", "northbridge_proximity1", \
"northbridge_proximity2", }
#define ASMC_MM21_TEMPDESCS { "Ambient Air Temperature" \
"CPU Die Core Temperature", \
"CPU Heatsink Temperature", \
"CPU Proximity 1 Temperature", \
"CPU Proximity 2 Temperature", \
"Northbridge Proximity 1 Temperature", \
"Northbridge Proximity 2 Temperature", }
#define ASMC_MM31_TEMPS { "TC0D", "TC0H", \
"TC0P", "TH0P", \
"TN0D", "TN0P", \