diff options
author | Furquan Shaikh <furquan@chromium.org> | 2018-01-26 17:53:38 -0800 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-01-30 20:20:52 +0000 |
commit | f8344fb1d8f4281a5dff5cf410f2f1f82dc3ac8a (patch) | |
tree | dcf75e19161d766cac8f4513397b0572c62e037b /src/mainboard/google/poppy | |
parent | cb58683ef581708fd256b875e05ed7263f867ab1 (diff) |
mb/google/poppy/variants/soraka: Enable mode-aware DPTF
This change selects EC tablet event and provides trip point
temperatures for tablet and non-tablet mode so that DPTF can
be supported depending upon device mode.
BUG=b:65467566
TEST=Verified by changing modes that the trip point temperatures are
updated in the
OS (/sys/devices/virtual/thermal/thermal_zone{2,3,4,5}).
Change-Id: I071868982fa87821550b870a6d8050cf2a030b49
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/23463
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sumeet R Pawnikar <sumeet.r.pawnikar@intel.com>
Diffstat (limited to 'src/mainboard/google/poppy')
-rw-r--r-- | src/mainboard/google/poppy/variants/soraka/include/variant/acpi/dptf.asl | 44 | ||||
-rw-r--r-- | src/mainboard/google/poppy/variants/soraka/include/variant/ec.h | 2 |
2 files changed, 28 insertions, 18 deletions
diff --git a/src/mainboard/google/poppy/variants/soraka/include/variant/acpi/dptf.asl b/src/mainboard/google/poppy/variants/soraka/include/variant/acpi/dptf.asl index b854608857..736bd13b69 100644 --- a/src/mainboard/google/poppy/variants/soraka/include/variant/acpi/dptf.asl +++ b/src/mainboard/google/poppy/variants/soraka/include/variant/acpi/dptf.asl @@ -14,28 +14,36 @@ * GNU General Public License for more details. */ -#define DPTF_CPU_PASSIVE 85 -#define DPTF_CPU_CRITICAL 100 +#define DPTF_CPU_PASSIVE 85 +#define DPTF_CPU_CRITICAL 100 -#define DPTF_TSR0_SENSOR_ID 1 -#define DPTF_TSR0_SENSOR_NAME "Ambient" -#define DPTF_TSR0_PASSIVE 55 -#define DPTF_TSR0_CRITICAL 65 +#define DPTF_TSR0_SENSOR_ID 1 +#define DPTF_TSR0_SENSOR_NAME "Ambient" +#define DPTF_TSR0_PASSIVE 55 +#define DPTF_TSR0_CRITICAL 65 +#define DPTF_TSR0_TABLET_PASSIVE 55 +#define DPTF_TSR0_TABLET_CRITICAL 65 -#define DPTF_TSR1_SENSOR_ID 2 -#define DPTF_TSR1_SENSOR_NAME "Charger" -#define DPTF_TSR1_PASSIVE 58 -#define DPTF_TSR1_CRITICAL 70 +#define DPTF_TSR1_SENSOR_ID 2 +#define DPTF_TSR1_SENSOR_NAME "Charger" +#define DPTF_TSR1_PASSIVE 58 +#define DPTF_TSR1_CRITICAL 70 +#define DPTF_TSR1_TABLET_PASSIVE 60 +#define DPTF_TSR1_TABLET_CRITICAL 70 -#define DPTF_TSR2_SENSOR_ID 3 -#define DPTF_TSR2_SENSOR_NAME "DRAM" -#define DPTF_TSR2_PASSIVE 60 -#define DPTF_TSR2_CRITICAL 75 +#define DPTF_TSR2_SENSOR_ID 3 +#define DPTF_TSR2_SENSOR_NAME "DRAM" +#define DPTF_TSR2_PASSIVE 60 +#define DPTF_TSR2_CRITICAL 75 +#define DPTF_TSR2_TABLET_PASSIVE 58 +#define DPTF_TSR2_TABLET_CRITICAL 75 -#define DPTF_TSR3_SENSOR_ID 4 -#define DPTF_TSR3_SENSOR_NAME "eMMC" -#define DPTF_TSR3_PASSIVE 60 -#define DPTF_TSR3_CRITICAL 75 +#define DPTF_TSR3_SENSOR_ID 4 +#define DPTF_TSR3_SENSOR_NAME "eMMC" +#define DPTF_TSR3_PASSIVE 60 +#define DPTF_TSR3_CRITICAL 75 +#define DPTF_TSR3_TABLET_PASSIVE 58 +#define DPTF_TSR3_TABLET_CRITICAL 75 #define DPTF_ENABLE_CHARGER diff --git a/src/mainboard/google/poppy/variants/soraka/include/variant/ec.h b/src/mainboard/google/poppy/variants/soraka/include/variant/ec.h index 047abb6b4d..a28b9903ca 100644 --- a/src/mainboard/google/poppy/variants/soraka/include/variant/ec.h +++ b/src/mainboard/google/poppy/variants/soraka/include/variant/ec.h @@ -18,4 +18,6 @@ #include <baseboard/ec.h> +#define EC_ENABLE_TABLET_EVENT /* Tablet event to support DPTF */ + #endif /* __MAINBOARD_EC_H__ */ |