diff options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/intel/fsp2_0/graphics.c | 5 | ||||
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/graphics.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/drivers/intel/fsp2_0/graphics.c b/src/drivers/intel/fsp2_0/graphics.c index ddf8f0b857..b55696b4bc 100644 --- a/src/drivers/intel/fsp2_0/graphics.c +++ b/src/drivers/intel/fsp2_0/graphics.c @@ -49,7 +49,8 @@ static const struct fsp_framebuffer { }; -void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar) +void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar, + enum lb_fb_orientation orientation) { size_t size; const struct hob_graphics_info *ginfo; @@ -94,7 +95,7 @@ void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar) .blue_mask_size = fbinfo->blue.size, .reserved_mask_pos = fbinfo->rsvd.pos, .reserved_mask_size = fbinfo->rsvd.size, - .orientation = LB_FB_ORIENTATION_NORMAL, + .orientation = orientation, }; 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 2d8138332f..dfd7b4e65b 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/graphics.h +++ b/src/drivers/intel/fsp2_0/include/fsp/graphics.h @@ -11,6 +11,7 @@ * Must be called after PCI enumeration to make sure that the BAR * doesn't change any more. */ -void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar); +void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar, + enum lb_fb_orientation orientation); #endif /* _FSP2_0_GRAPHICS_H_ */ |