drivers/intel/fsp2_0: Pass orientation to fsp_report_framebuffer_info
Instead of always passing LB_FB_ORIENTATION_NORMAL, allow the chipsets implementing the callback to pass in an orientation. BUG=b:194967458 BRANCH=dedede Change-Id: I4aacab9449930a75aca9d68bf30d019f86035405 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57647 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
committed by
Felix Held
parent
6296211607
commit
84428f72d0
@@ -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);
|
||||
|
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user