]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: video: vop: Add mipi display mode for rk3399
authorEric Gao <eric.gao@rock-chips.com>
Tue, 2 May 2017 10:23:52 +0000 (18:23 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:22 +0000 (13:37 -0600)
Add mipi display mode for rk3399 vop, so that we can use mipi panel
for display.

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

index 0ce3d6746f32aafd92b78bca14ef2a0390ee6a2d..d5599ec335bda813d09ae0cae9efa45f7ea3c3ac 100644 (file)
@@ -90,6 +90,7 @@ enum vop_modes {
        VOP_MODE_EDP = 0,
        VOP_MODE_HDMI,
        VOP_MODE_LVDS,
+       VOP_MODE_MIPI,
        VOP_MODE_NONE,
        VOP_MODE_AUTO_DETECT,
        VOP_MODE_UNKNOWN,
index c12c24b18d8f76fdf96c02408931b4eaa6184828..6809246d24d7dfea5dff7c177e20b469a3568165 100644 (file)
@@ -117,6 +117,10 @@ void rkvop_mode_set(struct rk3288_vop *regs,
                clrsetbits_le32(&regs->sys_ctrl, M_ALL_OUT_EN,
                                V_RGB_OUT_EN(1));
                break;
+       case VOP_MODE_MIPI:
+               clrsetbits_le32(&regs->sys_ctrl, M_ALL_OUT_EN,
+                               V_MIPI_OUT_EN(1));
+                break;
        }
 
        if (mode == VOP_MODE_HDMI || mode == VOP_MODE_EDP)
@@ -350,6 +354,8 @@ static const struct video_ops rk_vop_ops = {
 };
 
 static const struct udevice_id rk_vop_ids[] = {
+       { .compatible = "rockchip,rk3399-vop-big" },
+       { .compatible = "rockchip,rk3399-vop-lit" },
        { .compatible = "rockchip,rk3288-vop" },
        { }
 };