coreboot/src/include/framebuffer_info.h
Nancy Lin 14595d64de lib/edid_fill_fb: Add dual pipe flag to lb_framebuffer_flags
Extend the lb_framebuffer_flags struct to include one more bitfield
'has_dual_pipe' to indicate dual pipe support.

TEST=firmware display ok, in depthcharge with https://crrev.com/c/7129839
BRANCH=none
BUG=b:424782827

Change-Id: I082be80b4606090ed219820a407d80d9f429ea7e
Signed-off-by: Nancy Lin <nancy.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90038
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
2025-11-18 07:37:20 +00:00

30 lines
900 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __FRAMEBUFFER_INFO_H_
#define __FRAMEBUFFER_INFO_H_
#include <stdint.h>
#include <commonlib/coreboot_tables.h>
#include <types.h>
struct fb_info;
struct fb_info *
fb_add_framebuffer_info_ex(const struct lb_framebuffer *fb);
struct fb_info *fb_add_framebuffer_info(uintptr_t fb_addr, uint32_t x_resolution,
uint32_t y_resolution, uint32_t bytes_per_line,
uint8_t bits_per_pixel);
int fb_add_framebuffer_info_simple(uintptr_t fb_addr, uint32_t x_res, uint32_t y_res,
uint32_t bytes_per_line, uint8_t bits_per_pixel);
void fb_set_orientation(struct fb_info *info,
enum lb_fb_orientation orientation);
void fb_set_dual_pipe_flag(struct fb_info *info, bool dual_pipe);
struct edid;
struct fb_info *fb_new_framebuffer_info_from_edid(const struct edid *edid,
uintptr_t fb_addr);
#endif /* __FRAMEBUFFER_INFO_H_ */