Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2019 21:59:01 +0000 (UTC)
From:      David Bright <dab@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344553 - head/sys/dev/asmc
Message-ID:  <201902252159.x1PLx17s031752@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dab
Date: Mon Feb 25 21:59:01 2019
New Revision: 344553
URL: https://svnweb.freebsd.org/changeset/base/344553

Log:
  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

Modified:
  head/sys/dev/asmc/asmc.c
  head/sys/dev/asmc/asmcvar.h

Modified: head/sys/dev/asmc/asmc.c
==============================================================================
--- head/sys/dev/asmc/asmc.c	Mon Feb 25 21:58:19 2019	(r344552)
+++ head/sys/dev/asmc/asmc.c	Mon Feb 25 21:59:01 2019	(r344553)
@@ -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",

Modified: head/sys/dev/asmc/asmcvar.h
==============================================================================
--- head/sys/dev/asmc/asmcvar.h	Mon Feb 25 21:58:19 2019	(r344552)
+++ head/sys/dev/asmc/asmcvar.h	Mon Feb 25 21:59:01 2019	(r344553)
@@ -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", \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902252159.x1PLx17s031752>