drivers: Replace set_vbe_mode_info_valid
Currently it's not possible to add multiple graphics driver into one coreboot image. This patch series will fix this issue by providing a single API that multiple graphics driver can use. This is required for platforms that have two graphic cards, but different graphic drivers, like Intel+Aspeed on server platforms or Intel+Nvidia on consumer notebooks. The goal is to remove duplicated fill_fb_framebuffer(), the advertisment of multiple indepent framebuffers in coreboot tables, and better runtime/build time graphic configuration options. Replace set_vbe_mode_info_valid with fb_add_framebuffer_info or fb_new_framebuffer_info_from_edid. Change-Id: I95d1d62385a201c68c6c2527c023ad2292a235c5 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39004 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
parent
6c04b353c5
commit
8b56c8c6b2
18 changed files with 45 additions and 81 deletions
|
|
@ -96,8 +96,6 @@ enum edid_status {
|
|||
int decode_edid(unsigned char *edid, int size, struct edid *out);
|
||||
void edid_set_framebuffer_bits_per_pixel(struct edid *edid, int fb_bpp,
|
||||
int row_byte_alignment);
|
||||
struct fb_info *set_vbe_mode_info_valid(const struct edid *edid, uintptr_t fb_addr);
|
||||
void set_vbe_framebuffer_orientation(enum lb_fb_orientation orientation);
|
||||
int set_display_mode(struct edid *edid, enum edid_modes mode);
|
||||
|
||||
#endif /* EDID_H */
|
||||
|
|
|
|||
|
|
@ -19,4 +19,8 @@ struct fb_info *fb_add_framebuffer_info(uintptr_t fb_addr, uint32_t x_resolution
|
|||
void fb_set_orientation(struct fb_info *info,
|
||||
enum lb_fb_orientation orientation);
|
||||
|
||||
struct edid;
|
||||
struct fb_info *fb_new_framebuffer_info_from_edid(const struct edid *edid,
|
||||
uintptr_t fb_addr);
|
||||
|
||||
#endif /* __FRAMEBUFFER_INFO_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue