aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/variants/grunt
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2017-11-02 11:36:53 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2017-11-15 18:19:31 +0000
commit067031e0e195c4346255680821ff288b407e0b90 (patch)
treef5eaf61b5d113908d4eb331378cdbcce64b74c94 /src/mainboard/google/kahlee/variants/grunt
parentc8999a7c43e85365224e32a81364f68cb89d8975 (diff)
variants/kahlee: Add thermal ASL
Connect the EC thermal to Kahlee and Grunt thermal ASL. Intialize GNVS thermal values in the mainboard finalize. BUG=b:67999819 Change-Id: I89159a5fd3c639e511139b8c5948b6a4ee19aaa3 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/22400 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/mainboard/google/kahlee/variants/grunt')
-rw-r--r--src/mainboard/google/kahlee/variants/grunt/include/variant/thermal.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/variants/grunt/include/variant/thermal.h b/src/mainboard/google/kahlee/variants/grunt/include/variant/thermal.h
new file mode 100644
index 0000000000..2c983bb738
--- /dev/null
+++ b/src/mainboard/google/kahlee/variants/grunt/include/variant/thermal.h
@@ -0,0 +1,38 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Google Inc.
+ * Copyright (C) 2017 Advanced Micro Devices, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef THERMAL_H
+#define THERMAL_H
+
+/*
+ * Stoney Ridge Thermal Requirements 12 (6W)
+ * TDP (W) 6
+ * T die,max (°C) 95
+ * T ctl,max 85
+ * T die,lmt (default) 90
+ * T ctl,lmt (default) 80
+ */
+
+/* Control TDP Settings */
+#define CTL_TDP_SENSOR_ID 0 /* EC TIN0 */
+
+/* Temperature which OS will shutdown at */
+#define CRITICAL_TEMPERATURE 94
+
+/* Temperature which OS will throttle CPU */
+#define PASSIVE_TEMPERATURE 85
+
+#endif