<p>Nick Vaccaro has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22381">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mainboard/google/zoombini: add dptf.asl and gpio.h<br><br>Add dptf.asl to baseboard variant includes,<br>instruct zoombini variant to use the baseboard's dptf.asl,<br>instruct zoombini variant to use the baseboard's gpio.h.<br><br>BUG=b:64395641<br>BRANCH=None<br>TEST=Verify "./util/abuild/abuild -p none -t google/zoombini -x<br>-a" compiles successfully.<br><br>Change-Id: I9aa37f5afc35dab372917a4c84ff3121ec569546<br>Signed-off-by: Nick Vaccaro <nvaccaro@google.com><br>---<br>A src/mainboard/google/zoombini/variants/baseboard/include/baseboard/acpi/dptf.asl<br>A src/mainboard/google/zoombini/variants/zoombini/include/variant/acpi/dptf.asl<br>A src/mainboard/google/zoombini/variants/zoombini/include/variant/gpio.h<br>3 files changed, 123 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/22381/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/google/zoombini/variants/baseboard/include/baseboard/acpi/dptf.asl b/src/mainboard/google/zoombini/variants/baseboard/include/baseboard/acpi/dptf.asl<br>new file mode 100644<br>index 0000000..aba1385<br>--- /dev/null<br>+++ b/src/mainboard/google/zoombini/variants/baseboard/include/baseboard/acpi/dptf.asl<br>@@ -0,0 +1,86 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright 2017 Google Inc.<br>+ * Copyright (C) 2015 Intel Corporation.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#define DPTF_CPU_PASSIVE     95<br>+#define DPTF_CPU_CRITICAL  105<br>+#define DPTF_CPU_ACTIVE_AC0       90<br>+#define DPTF_CPU_ACTIVE_AC1        80<br>+#define DPTF_CPU_ACTIVE_AC2        70<br>+#define DPTF_CPU_ACTIVE_AC3        60<br>+#define DPTF_CPU_ACTIVE_AC4        50<br>+<br>+#define DPTF_TSR0_SENSOR_ID     0<br>+#define DPTF_TSR0_SENSOR_NAME       "Battery"<br>+#define DPTF_TSR0_PASSIVE 120<br>+#define DPTF_TSR0_CRITICAL        125<br>+<br>+#define DPTF_TSR1_SENSOR_ID    1<br>+#define DPTF_TSR1_SENSOR_NAME       "Ambient"<br>+#define DPTF_TSR1_PASSIVE 46<br>+#define DPTF_TSR1_CRITICAL 75<br>+<br>+#define DPTF_TSR2_SENSOR_ID     2<br>+#define DPTF_TSR2_SENSOR_NAME       "Charger"<br>+#define DPTF_TSR2_PASSIVE 58<br>+#define DPTF_TSR2_CRITICAL 90<br>+<br>+#define DPTF_ENABLE_CHARGER<br>+<br>+/* Charger performance states, board-specific values from charger and EC */<br>+Name (CHPS, Package () {<br>+      Package () { 0, 0, 0, 0, 255, 0xBB8, "mA", 0 },       /* 3A (MAX) */<br>+       Package () { 0, 0, 0, 0, 24, 0x600, "mA", 0 },        /* 1.5A */<br>+   Package () { 0, 0, 0, 0, 16, 0x400, "mA", 0 },        /* 1.0A */<br>+   Package () { 0, 0, 0, 0, 8, 0x200, "mA", 0 }, /* 0.5A */<br>+   Package () { 0, 0, 0, 0, 0, 0x000, "mA", 0 }, /* 0.0A */<br>+})<br>+<br>+Name (DTRT, Package () {<br>+        /* CPU Throttle Effect on CPU */<br>+     Package () { \_SB.PCI0.TCPU, \_SB.PCI0.TCPU, 100, 100, 0, 0, 0, 0 },<br>+<br>+      /* CPU Effect on Temp Sensor 0 */<br>+    Package () { \_SB.PCI0.TCPU, \_SB.DPTF.TSR0, 100, 1200, 0, 0, 0, 0 },<br>+<br>+#ifdef DPTF_ENABLE_CHARGER<br>+        /* Charger Effect on Temp Sensor 2 */<br>+        Package () { \_SB.DPTF.TCHG, \_SB.DPTF.TSR2, 200, 300, 0, 0, 0, 0 },<br>+#endif<br>+<br>+     /* CPU Effect on Temp Sensor 1 */<br>+    Package () { \_SB.PCI0.TCPU, \_SB.DPTF.TSR1, 100, 150, 0, 0, 0, 0 },<br>+})<br>+<br>+Name (MPPC, Package ()<br>+{<br>+    0x2,            /* Revision */<br>+       Package () {    /* Power Limit 1 */<br>+          0,      /* PowerLimitIndex, 0 for Power Limit 1 */<br>+           3000,   /* PowerLimitMinimum */<br>+              12000,  /* PowerLimitMaximum */<br>+              1000,   /* TimeWindowMinimum */<br>+              1000,   /* TimeWindowMaximum */<br>+              200     /* StepSize */<br>+       },<br>+   Package () {    /* Power Limit 2 */<br>+          1,      /* PowerLimitIndex, 1 for Power Limit 2 */<br>+           8000,   /* PowerLimitMinimum */<br>+              15000,  /* PowerLimitMaximum */<br>+              1000,   /* TimeWindowMinimum */<br>+              1000,   /* TimeWindowMaximum */<br>+              1000    /* StepSize */<br>+       }<br>+})<br>diff --git a/src/mainboard/google/zoombini/variants/zoombini/include/variant/acpi/dptf.asl b/src/mainboard/google/zoombini/variants/zoombini/include/variant/acpi/dptf.asl<br>new file mode 100644<br>index 0000000..15c46e4<br>--- /dev/null<br>+++ b/src/mainboard/google/zoombini/variants/zoombini/include/variant/acpi/dptf.asl<br>@@ -0,0 +1,16 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright 2017 Google Inc.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#include <baseboard/acpi/dptf.asl><br>diff --git a/src/mainboard/google/zoombini/variants/zoombini/include/variant/gpio.h b/src/mainboard/google/zoombini/variants/zoombini/include/variant/gpio.h<br>new file mode 100644<br>index 0000000..4f79495<br>--- /dev/null<br>+++ b/src/mainboard/google/zoombini/variants/zoombini/include/variant/gpio.h<br>@@ -0,0 +1,21 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * Copyright 2017 Google Inc.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#ifndef __MAINBOARD_GPIO_H__<br>+#define __MAINBOARD_GPIO_H__<br>+<br>+#include <baseboard/gpio.h><br>+<br>+#endif /* __MAINBOARD_GPIO_H__ */<br></pre><p>To view, visit <a href="https://review.coreboot.org/22381">change 22381</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22381"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9aa37f5afc35dab372917a4c84ff3121ec569546 </div>
<div style="display:none"> Gerrit-Change-Number: 22381 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nick Vaccaro <nvaccaro@google.com> </div>