rockchip: video: vop: Reserve enough space for mipi dispaly
authorEric Gao <eric.gao@rock-chips.com>
Tue, 2 May 2017 10:23:54 +0000 (18:23 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:22 +0000 (13:37 -0600)
plat->size here is used to reserve frame buffer space befor relocation.
our mipi panel use 24 bitwidth, and vop require 32bit align. So the frame
buffer size should be at least 1920*1200*32/8.

Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/rockchip/rk_vop.c

index 6e0fffab2eb909dd2d205af1d9964cf9e259da1f..aa6ca8c859566a97d090c4a105389db0d533def9 100644 (file)
@@ -357,7 +357,7 @@ static int rk_vop_bind(struct udevice *dev)
 {
        struct video_uc_platdata *plat = dev_get_uclass_platdata(dev);
 
-       plat->size = 1920 * 1080 * 2;
+       plat->size = 1920 * 1200 * 4;
 
        return 0;
 }