aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/baseboard/include
diff options
context:
space:
mode:
authorReka Norman <rekanorman@google.com>2022-04-06 20:34:07 +1000
committerPatrick Georgi <patrick@coreboot.org>2022-04-07 08:14:37 +0000
commita6de947a6baada8a0633d86e0bf3abda3e80405c (patch)
tree87fd9c92f74ba2be64df5d7dd411a11714326ed5 /src/mainboard/google/brya/variants/baseboard/include
parente790f929bd6986958f89d0c20d55ff1bd13d2ec5 (diff)
mb/google/brya/var/nereid: Configure descriptor for either Type-C or HDMI
Some bytes in the descriptor need to be set differently for Type-C and HDMI. To allow using a single firmware variant for both cases, update the descriptor at runtime based on fw_config. This is a temporary workaround while we find a better solution. The byte values were determined by changing the following CSE strap and comparing the generated descriptors: Type-C: TypeCPort2Config = "No Thunderbolt" HDMI: TypeCPort2Config = "DP Fixed Connection" The default value before updating the descriptor is Type-C, but this was chosen arbitrarily. BUG=b:226848617 TEST=Type-C and HDMI both work on nereid with fw_config set correctly. Change-Id: I2cc230e3bd35816c81989ae7e01df5d2c152062e Signed-off-by: Reka Norman <rekanorman@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63366 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Sam McNally <sammc@google.com>
Diffstat (limited to 'src/mainboard/google/brya/variants/baseboard/include')
-rw-r--r--src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h
index 8c79a8a871..baf05979ca 100644
--- a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h
@@ -34,6 +34,8 @@ void variant_generate_s0ix_hook(enum s0ix_entry);
/* Modify devictree settings during ramstage */
void variant_devtree_update(void);
+void variant_update_descriptor(void);
+
struct cpu_power_limits {
uint16_t mchid;
u8 cpu_tdp;