ec/google/chromeec: set DPTC power parameter at OS startup
set DPTC power parameter per clamshell/tablet mode after EC OP region is accessible. BUG=b:157943445 BRANCH=zork TEST=1. emerge-zork coreboot 2. power on DUT in tablet mode then check "thermctl_limit" will change automatically Change-Id: Ic3e1119881790c34f5649986334b4e3cecafc02b Signed-off-by: Kevin Chiu <kevin.chiu@quantatw.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45580 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
8b1ee26ac1
commit
83f0c699c7
|
@ -159,6 +159,17 @@ Device (EC0)
|
|||
|
||||
// Initialize LID switch state
|
||||
Store (LIDS, \LIDS)
|
||||
|
||||
#ifdef EC_ENABLE_AMD_DPTC_SUPPORT
|
||||
/*
|
||||
* Per the device mode (clamshell or tablet) to initialize
|
||||
* the thermal setting on OS startup.
|
||||
*/
|
||||
If (CondRefOf (\_SB.DPTC)) {
|
||||
\_SB.DPTC()
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/* Read requested temperature and check against EC error values */
|
||||
|
|
Loading…
Reference in New Issue