[U-Boot] [PATCH v2 2/8] rockchip: video: vop: Add mipi display mode for rk3399
Eddie Cai
eddie.cai.linux at gmail.com
Tue Apr 18 14:20:57 UTC 2017
2017-04-18 15:09 GMT+08:00 Eric Gao <eric.gao at rock-chips.com>:
> Add mipi display mode for rk3399 vop, so that we can use mipi panel
> for display.
>
> Signed-off-by: Eric Gao <eric.gao at rock-chips.com>
>
Reviewed-by: Eddie Cai <eddie.cai.linux at gmail.com>
>
> ---
>
> Changes in v2:
> -Add mipi display mode for vop.
> -Add compatible items for rk3399 vop.
>
> arch/arm/include/asm/arch-rockchip/vop_rk3288.h | 1 +
> drivers/video/rockchip/rk_vop.c | 6 ++++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
> b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
> index 0ce3d67..d5599ec 100644
> --- a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
> +++ b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h
> @@ -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,
> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_
> vop.c
> index bc02f80..84d6627 100644
> --- a/drivers/video/rockchip/rk_vop.c
> +++ b/drivers/video/rockchip/rk_vop.c
> @@ -117,6 +117,10 @@ void rkvop_mode_set(struct rk3288_vop *regs,
> clrsetbits_le32(®s->sys_ctrl, M_ALL_OUT_EN,
> V_RGB_OUT_EN(1));
> break;
> + case VOP_MODE_MIPI:
> + clrsetbits_le32(®s->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" },
> { }
> };
> --
> 1.9.1
>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>
More information about the U-Boot
mailing list