From b927d558bb452cf723c34ff9c363dca3cc6b9909 Mon Sep 17 00:00:00 2001 From: John Su Date: Thu, 13 Feb 2025 14:31:44 +0800 Subject: [PATCH] mb/google/trulo/var/uldrenite: Enable DPTF oem_variables Support oem_variables and change based on EC notify event. BUG=b:394177292 BRANCH=firmware-trulo-15217.771.B TEST=emerge-nissa coreboot Change-Id: Iac18cb968906a9dfe53836432ba8dbefee1dcc8e Signed-off-by: John Su Reviewed-on: https://review.coreboot.org/c/coreboot/+/86394 Reviewed-by: Dtrain Hsu Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal Reviewed-by: Eric Lai --- .../google/brya/variants/uldrenite/include/variant/ec.h | 3 +++ .../google/brya/variants/uldrenite/overridetree.cb | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h b/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h index 7a2a6ff8b7..818cdef7df 100644 --- a/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h +++ b/src/mainboard/google/brya/variants/uldrenite/include/variant/ec.h @@ -5,4 +5,7 @@ #include +/* Enable DPTF OEM variable */ +#define DPTF_ENABLE_OEM_VARIABLES + #endif diff --git a/src/mainboard/google/brya/variants/uldrenite/overridetree.cb b/src/mainboard/google/brya/variants/uldrenite/overridetree.cb index fdc933eb3b..5571fe7902 100644 --- a/src/mainboard/google/brya/variants/uldrenite/overridetree.cb +++ b/src/mainboard/google/brya/variants/uldrenite/overridetree.cb @@ -225,7 +225,11 @@ chip soc/intel/alderlake [3] = { 8, 500 } }" - device generic 0 on end + register "oem_data.oem_variables" = "{ + [0] = 0x0 + }" + + device generic 0 alias dptf_policy on end end end # DPTF device ref tcss_xhci on