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>
This commit is contained in:
Furquan Shaikh 2018-01-26 17:53:38 -08:00 committed by Furquan Shaikh
parent cb58683ef5
commit f8344fb1d8
2 changed files with 28 additions and 18 deletions

View File

@ -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

View File

@ -18,4 +18,6 @@
#include <baseboard/ec.h>
#define EC_ENABLE_TABLET_EVENT /* Tablet event to support DPTF */
#endif /* __MAINBOARD_EC_H__ */