Skip to content

Commit

Permalink
asmc: Add support for Mac mini 4,1 (Mid-2010)
Browse files Browse the repository at this point in the history
MFC after:	1 week
  • Loading branch information
dabright committed Jan 6, 2019
1 parent da61c77 commit 9f0bfc5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sys/dev/asmc/asmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ static struct asmc_model *asmc_match(device_t dev);
asmc_mbp_sysctl_light_right, \
asmc_mbp_sysctl_light_control

#define ASMC_LIGHT_FUNCS_DISABLED NULL, NULL, NULL

struct asmc_model asmc_models[] = {
{
"MacBook1,1", "Apple SMC MacBook Core Duo",
Expand Down Expand Up @@ -266,6 +268,15 @@ struct asmc_model asmc_models[] = {
ASMC_MM31_TEMPS, ASMC_MM31_TEMPNAMES, ASMC_MM31_TEMPDESCS
},

/* The Mac Mini 4,1 (Mid-2010) has no SMS */
{
"Macmini4,1", "Apple SMC Mac mini 4,1 (Mid-2010)",
ASMC_SMS_FUNCS_DISABLED,
ASMC_FAN_FUNCS,
ASMC_LIGHT_FUNCS_DISABLED,
ASMC_MM41_TEMPS, ASMC_MM41_TEMPNAMES, ASMC_MM41_TEMPDESCS
},

/* The Mac Mini 5,2 has no SMS */
{
"Macmini5,2", "Apple SMC Mac Mini 5,2",
Expand Down
21 changes: 21 additions & 0 deletions sys/dev/asmc/asmcvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,27 @@ struct asmc_softc {
"Northbridge Proximity Temperature", \
"Wireless Module Proximity Temperature", }

#define ASMC_MM41_TEMPS { "TA0P", "TC0D", "TC0G", "TC0H", "TC0P", \
"TC0p", "TCPG", "TH0G", "TH0P", "TH0p", \
"TM0G", "TM0P", "TM0p", "TN0D", "TN0G", \
"TN0P", "TN0p", "TN1D", "TN1E", "TN1F", \
"TN1G", "TN1S", "TNPG", "TO0P", "TO0p", \
"TW0P", "Tm0P", "Tp0C", NULL }

#define ASMC_MM41_TEMPNAMES { "TA0P", "TC0D", "TC0G", "TC0H", "TC0P", \
"TC0p", "TCPG", "TH0G", "TH0P", "TH0p", \
"TM0G", "TM0P", "TM0p", "TN0D", "TN0G", \
"TN0P", "TN0p", "TN1D", "TN1E", "TN1F", \
"TN1G", "TN1S", "TNPG", "TO0P", "TO0p", \
"TW0P", "Tm0P", "Tp0C", NULL }

#define ASMC_MM41_TEMPDESCS { "TA0P", "TC0D", "TC0G", "TC0H", "TC0P", \
"TC0p", "TCPG", "TH0G", "TH0P", "TH0p", \
"TM0G", "TM0P", "TM0p", "TN0D", "TN0G", \
"TN0P", "TN0p", "TN1D", "TN1E", "TN1F", \
"TN1G", "TN1S", "TNPG", "TO0P", "TO0p", \
"TW0P", "Tm0P", "Tp0C", NULL }

#define ASMC_MM52_TEMPS { "TA0P", "TA1P", \
"TC0D", "TC0P", \
"TG0D", "TG1D", \
Expand Down

0 comments on commit 9f0bfc5

Please sign in to comment.