diff options
Diffstat (limited to 'src/drivers/intel')
-rw-r--r-- | src/drivers/intel/fsp2_0/graphics.c | 10 | ||||
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/graphics.h | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/graphics.c b/src/drivers/intel/fsp2_0/graphics.c index 6514209d04..a98f3bbba2 100644 --- a/src/drivers/intel/fsp2_0/graphics.c +++ b/src/drivers/intel/fsp2_0/graphics.c @@ -54,6 +54,13 @@ enum fw_splash_screen_status { FW_SPLASH_SCREEN_ENABLED, }; +/* Check and report if an external display is attached */ +__weak int fsp_soc_report_external_display(void) +{ + /* Default implementation, on-board display enabled */ + return 0; +} + /* * Update elog with Firmware Splash Screen related information * based on enum fw_splash_screen_status. @@ -123,6 +130,9 @@ void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar, .reserved_mask_pos = fbinfo->rsvd.pos, .reserved_mask_size = fbinfo->rsvd.size, .orientation = orientation, + .flags = { + .has_external_display = fsp_soc_report_external_display(), + }, }; fb_add_framebuffer_info_ex(&fb); diff --git a/src/drivers/intel/fsp2_0/include/fsp/graphics.h b/src/drivers/intel/fsp2_0/include/fsp/graphics.h index dfd7b4e65b..a5f781f87f 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/graphics.h +++ b/src/drivers/intel/fsp2_0/include/fsp/graphics.h @@ -14,4 +14,14 @@ void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar, enum lb_fb_orientation orientation); +/* SoC Overrides */ +/* + * Check and report if an external display is attached + * + * Possible return values: + * 1 - An external device is attached. + * 0 - On-board display alone. + */ +int fsp_soc_report_external_display(void); + #endif /* _FSP2_0_GRAPHICS_H_ */ |