summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya
diff options
context:
space:
mode:
authorLeo Chou <leo.chou@lcfc.corp-partner.google.com>2023-09-06 16:40:40 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-09-13 13:16:16 +0000
commit3c4e0ad5616dd6f8090c2a3bc0fe013a80a4040e (patch)
tree0a890324394ffbb676705864c2e52709b9831a65 /src/mainboard/google/brya
parent1db8f13bb6e5bc0128dea5c0f7989e744ee90628 (diff)
mb/google/nissa/var/pujjo: Select VBT based on FW_CONFIG for pujjo1e
Select pujjo1e vbt bin files based on PANEL_IVO_BOE field of FW_CONFIG. BUG=b:299852789 TEST=emerge-nissa coreboot Signed-off-by: Leo Chou <leo.chou@lcfc.corp-partner.google.com> Change-Id: I344f97331e79e713af47ad743e27794e21be4ca3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77688 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'src/mainboard/google/brya')
-rw-r--r--src/mainboard/google/brya/variants/pujjo/overridetree.cb4
-rw-r--r--src/mainboard/google/brya/variants/pujjo/variant.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/pujjo/overridetree.cb b/src/mainboard/google/brya/variants/pujjo/overridetree.cb
index 3dffd31741..f1bee666ba 100644
--- a/src/mainboard/google/brya/variants/pujjo/overridetree.cb
+++ b/src/mainboard/google/brya/variants/pujjo/overridetree.cb
@@ -45,6 +45,10 @@ fw_config
option LTE_EM060_ABSENT 0
option LTE_EM060_PRESENT 1
end
+ field PANEL_IVO_BOE 21
+ option IVO_BOE_ABSENT 0
+ option IVO_BOE_PRESENT 1
+ end
end
diff --git a/src/mainboard/google/brya/variants/pujjo/variant.c b/src/mainboard/google/brya/variants/pujjo/variant.c
index 97e7e557d4..695f043978 100644
--- a/src/mainboard/google/brya/variants/pujjo/variant.c
+++ b/src/mainboard/google/brya/variants/pujjo/variant.c
@@ -3,6 +3,8 @@
#include <fw_config.h>
#include <baseboard/variants.h>
#include <baseboard/gpio.h>
+#include <console/console.h>
+#include <drivers/intel/gma/opregion.h>
#include <sar.h>
#include <delay.h>
@@ -68,3 +70,13 @@ void variant_init(void)
gpio_configure_pads(fm350_perst_pad, ARRAY_SIZE(fm350_perst_pad));
}
}
+
+const char *mainboard_vbt_filename(void)
+{
+ if (fw_config_probe(FW_CONFIG(PANEL_IVO_BOE, IVO_BOE_PRESENT))) {
+ printk(BIOS_INFO, "Use vbt-pujjo1e.bin\n");
+ return "vbt-pujjo1e.bin";
+ }
+ printk(BIOS_INFO, "Use vbt.bin\n");
+ return "vbt.bin";
+}