Kevin Chang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52150 )
Change subject: lillupup: provide additional VBT for lillipup OLED sku ......................................................................
lillupup: 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_lillipup.bin is under build folder and check in CPU log.
Signed-off-by: Kevin Chang kevin.chang@lcfc.corp-partner.google.com Change-Id: I576297b8296def3c37a01ae0223fa332aa9f02b1 --- A src/mainboard/google/volteer/variants/lindar/include/variant/sku.h M src/mainboard/google/volteer/variants/lindar/variant.c 2 files changed, 29 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/52150/1
diff --git a/src/mainboard/google/volteer/variants/lindar/include/variant/sku.h b/src/mainboard/google/volteer/variants/lindar/include/variant/sku.h new file mode 100644 index 0000000..83f98c8 --- /dev/null +++ b/src/mainboard/google/volteer/variants/lindar/include/variant/sku.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __MAINBOARD_SKU_H__ +#define __MAINBOARD_SKU_H__ + +enum { + SKU_6_OLED = 0x80006, + SKU_7_OLED = 0x80007, +}; + +#endif /* __MAINBOARD_SKU_H__ */ diff --git a/src/mainboard/google/volteer/variants/lindar/variant.c b/src/mainboard/google/volteer/variants/lindar/variant.c index 2d10dc6..24ad708 100644 --- a/src/mainboard/google/volteer/variants/lindar/variant.c +++ b/src/mainboard/google/volteer/variants/lindar/variant.c @@ -2,6 +2,9 @@
#include <fw_config.h> #include <sar.h> +#include <ec/google/chromeec/ec.h> +#include <drivers/intel/gma/opregion.h> +#include <variant/sku.h>
const char *get_wifi_sar_cbfs_filename(void) { @@ -12,3 +15,18 @@
return WIFI_SAR_CBFS_DEFAULT_FILENAME; } + +const char *mainboard_vbt_filename(void) +{ + uint32_t sku_id; + + sku_id = google_chromeec_get_board_sku(); + + switch (sku_id) { + case SKU_6_OLED: + case SKU_7_OLED: + return "vbt-lillipup.bin"; + default: + return "vbt.bin"; + } +}