summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brox/variants/lotso
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2024-10-30 10:27:10 -0600
committerKarthik Ramasubramanian <kramasub@google.com>2024-11-06 22:43:10 +0000
commit2ba74b8c188b8234131dff7e12284becf34a6f2f (patch)
tree7d2e9780be707721082415e677d918a87d7705f1 /src/mainboard/google/brox/variants/lotso
parentede97c29c6f3307f0098e85a6aef998cb2f773f1 (diff)
mb/google/brox: Hint romstage init about upcoming reset
Add support for the mainboard to check for any potential firmware component update and hence the assosicated reset. This indication can be used to avoid any redundant resets during the boot flow. BUG=b:375444631 TEST=Build Brox BIOS image and boot to OS. Ensure that the hints are provided correctly and 2 redundant resets are filtered out. Change-Id: Ieed3f9013dee9aa501a3f0403f3a28722a3878f1 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84937 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/mainboard/google/brox/variants/lotso')
-rw-r--r--src/mainboard/google/brox/variants/lotso/Makefile.mk1
-rw-r--r--src/mainboard/google/brox/variants/lotso/variant.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/brox/variants/lotso/Makefile.mk b/src/mainboard/google/brox/variants/lotso/Makefile.mk
index a1059a5eba..dde5215227 100644
--- a/src/mainboard/google/brox/variants/lotso/Makefile.mk
+++ b/src/mainboard/google/brox/variants/lotso/Makefile.mk
@@ -4,6 +4,7 @@ bootblock-y += gpio.c
romstage-y += memory.c
romstage-y += gpio.c
ramstage-y += gpio.c
+romstage-$(CONFIG_FW_CONFIG) += variant.c
ramstage-$(CONFIG_FW_CONFIG) += variant.c
ramstage-y += ramstage.c
smm-y += smihandler.c
diff --git a/src/mainboard/google/brox/variants/lotso/variant.c b/src/mainboard/google/brox/variants/lotso/variant.c
index 066acb2878..6121450911 100644
--- a/src/mainboard/google/brox/variants/lotso/variant.c
+++ b/src/mainboard/google/brox/variants/lotso/variant.c
@@ -19,3 +19,12 @@ const char *get_wifi_sar_cbfs_filename(void)
{
return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_BT));
}
+
+const char *variant_get_auxfw_version_file(void)
+{
+ if (fw_config_probe(FW_CONFIG(RETIMER, RETIMER_BYPASS)))
+ return "rts5453_retimer_bypass.hash";
+ else if (fw_config_probe(FW_CONFIG(RETIMER, RETIMER_JHL8040)))
+ return "rts5453_retimer_jhl8040.hash";
+ return NULL;
+}