mirror of
https://xff.cz/git/u-boot/
synced 2025-10-03 08:21:30 +02:00
x86: fsp: video: Allocate a frame buffer when needed
When the copy framebuffer is in use, we must also have the standard U-Boot framebuffer available. Update the FSP driver to support this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de> Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -117,6 +117,16 @@ err:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int fsp_video_bind(struct udevice *dev)
|
||||||
|
{
|
||||||
|
struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
|
||||||
|
|
||||||
|
/* Set the maximum supported resolution */
|
||||||
|
plat->size = 2560 * 1600 * 4;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct udevice_id fsp_video_ids[] = {
|
static const struct udevice_id fsp_video_ids[] = {
|
||||||
{ .compatible = "fsp-fb" },
|
{ .compatible = "fsp-fb" },
|
||||||
{ }
|
{ }
|
||||||
@@ -126,7 +136,9 @@ U_BOOT_DRIVER(fsp_video) = {
|
|||||||
.name = "fsp_video",
|
.name = "fsp_video",
|
||||||
.id = UCLASS_VIDEO,
|
.id = UCLASS_VIDEO,
|
||||||
.of_match = fsp_video_ids,
|
.of_match = fsp_video_ids,
|
||||||
|
.bind = fsp_video_bind,
|
||||||
.probe = fsp_video_probe,
|
.probe = fsp_video_probe,
|
||||||
|
.flags = DM_FLAG_PRE_RELOC,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_device_id fsp_video_supported[] = {
|
static struct pci_device_id fsp_video_supported[] = {
|
||||||
|
Reference in New Issue
Block a user