ec/google/wilco: Guard DTPF with ifdef
There is a dependency issue with the EC DPTF code accessing methods that are external, but once the mainboard includes the relevant code they become internal and the current version of IASL used by jenkins will fail to compile it. Until the new IASL is deployed everywhere wrap the EC DPTF code and expect that the mainboard will explicitly enable it. Change-Id: I612ad8f86d424060ca0303d267d7c2915c760173 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/30036 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
98d7de7ea9
commit
bfb001d1a0
|
@ -18,10 +18,6 @@
|
|||
* Dynamic Platform Thermal Framework support
|
||||
*/
|
||||
|
||||
External (\_SB.DPTF.CTOK, MethodObj)
|
||||
External (\_SB.DPTF.KTOC, MethodObj)
|
||||
External (\_SB.DPTF.TEVT, MethodObj)
|
||||
|
||||
/* Mutex for EC PAT interface */
|
||||
Mutex (PATM, 1)
|
||||
|
||||
|
|
|
@ -147,5 +147,7 @@ Device (EC0)
|
|||
#include "event.asl"
|
||||
#include "lid.asl"
|
||||
#include "platform.asl"
|
||||
#ifdef EC_ENABLE_DPTF
|
||||
#include "dptf.asl"
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -88,10 +88,12 @@ Method (ECQ3, 1, Serialized)
|
|||
{
|
||||
Printf ("EVT3: %o", Arg0)
|
||||
|
||||
#ifdef EC_ENABLE_DPTF
|
||||
/* Theraml Events */
|
||||
If (EBIT (E3TH, Arg0)) {
|
||||
^PATX ()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Handle events in PmEv4 */
|
||||
|
|
Loading…
Reference in New Issue