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>
This commit is contained in:
parent
1db8f13bb6
commit
3c4e0ad561
|
@ -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
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue