From f8344fb1d8f4281a5dff5cf410f2f1f82dc3ac8a Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 26 Jan 2018 17:53:38 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/23463 Reviewed-by: Duncan Laurie Tested-by: build bot (Jenkins) Reviewed-by: Sumeet R Pawnikar --- .../variants/soraka/include/variant/acpi/dptf.asl | 44 +++++++++++++--------- .../poppy/variants/soraka/include/variant/ec.h | 2 + 2 files changed, 28 insertions(+), 18 deletions(-) (limited to 'src') 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 +#define EC_ENABLE_TABLET_EVENT /* Tablet event to support DPTF */ + #endif /* __MAINBOARD_EC_H__ */ -- cgit v1.2.3