Skip to contentSkip to conversation

video: ipuv3: Set max display bpp to 32

PATCH New Marek Vasut 2 participants 2 messages May 5, 2019 – May 20, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: ipuv3: Set max display bpp to 32

The IPUv3 can handle 1920x1080x32bpp displays , set the max preallocated framebuffer BPP to 32 to cater for all eventualities.

Cc Anatolij Gustschin <[email protected]>
---
 drivers/video/imx/mxc_ipuv3_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/imx/mxc_ipuv3_fb.c +1 -1
index 3e38d4bdcc..29f7c21f75 100644
@@ -678,7 +678,7 @@ static int ipuv3_video_bind(struct udevice *dev)
 	struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
 
 	plat->size = LCD_MAX_WIDTH * LCD_MAX_HEIGHT *
-		     (1 << LCD_MAX_LOG2_BPP) / 8;
+		     (1 << VIDEO_BPP32) / 8;
 
 	return 0;
 }
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 video: ipuv3: Set max display bpp to 32

Quoted 8 lines · On Mon, 6 May 2019 01:11:32 +0200 Marek Vasut marex at denx.de wrote:

The IPUv3 can handle 1920x1080x32bpp displays , set the max preallocated framebuffer BPP to 32 to cater for all eventualities.

Cc Anatolij Gustschin <[email protected]>
---
 drivers/video/imx/mxc_ipuv3_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to u-boot-video/master, thanks!

--
Anatolij