summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chang <kevin.chang@lcfc.corp-partner.google.com>2021-04-07 15:18:25 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-04-14 10:38:36 +0000
commitc48cf110dd38f6dbbbd146aaec67daa81a56c043 (patch)
tree0b5eb454bef5ad9d6fe75a2b1f0b6e83d24302f5
parent7cc14ac25d9d40a7c2fc078c248faafbac887a5d (diff)
downloadcoreboot-c48cf110dd38f6dbbbd146aaec67daa81a56c043.tar.xz
lillipup: provide additional VBT for lillipup OLED sku
Lillipup add two sku for OLED panel. Additional VBT is necessary to modify PWM source from VESA eDP AUX interface BUG=b:183630802 TEST=emerge-volteer coreboot-private-files-baseboard-volteer check vbt_oled.bin is under build folder and check in CPU log. Cq-Depend: chrome-internal:3744227 Signed-off-by: Kevin Chang <kevin.chang@lcfc.corp-partner.google.com> Change-Id: I576297b8296def3c37a01ae0223fa332aa9f02b1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52150 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Zhuohao Lee <zhuohao@google.com> Reviewed-by: YH Lin <yueherngl@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/google/volteer/variants/baseboard/devicetree.cb4
-rw-r--r--src/mainboard/google/volteer/variants/lindar/variant.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/google/volteer/variants/baseboard/devicetree.cb b/src/mainboard/google/volteer/variants/baseboard/devicetree.cb
index 58d1aac79b..c51422c653 100644
--- a/src/mainboard/google/volteer/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/volteer/variants/baseboard/devicetree.cb
@@ -68,6 +68,10 @@ fw_config
option WIFI_SAR_ID_2 2
option WIFI_SAR_ID_3 3
end
+ field OLED_SCREEN 28
+ option OLED_NOT_PRESENT 0
+ option OLED_PRESENT 1
+ end
end
chip soc/intel/tigerlake
diff --git a/src/mainboard/google/volteer/variants/lindar/variant.c b/src/mainboard/google/volteer/variants/lindar/variant.c
index 2d10dc6fc1..0f985985e2 100644
--- a/src/mainboard/google/volteer/variants/lindar/variant.c
+++ b/src/mainboard/google/volteer/variants/lindar/variant.c
@@ -2,6 +2,7 @@
#include <fw_config.h>
#include <sar.h>
+#include <drivers/intel/gma/opregion.h>
const char *get_wifi_sar_cbfs_filename(void)
{
@@ -12,3 +13,10 @@ const char *get_wifi_sar_cbfs_filename(void)
return WIFI_SAR_CBFS_DEFAULT_FILENAME;
}
+
+const char *mainboard_vbt_filename(void)
+{
+ if (fw_config_probe(FW_CONFIG(OLED_SCREEN, OLED_PRESENT)))
+ return "vbt-oled.bin";
+ return "vbt.bin";
+}