drm/rockchip: dw-hdmi: Add ycbcr_420_allowed to hdmi plat data

If the platform supports yuv420, set ycbcr_420_allowed to true.

Change-Id: I963b35b1e243f3267a3237c82120e6fe826850d5
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2019-07-22 09:11:11 +08:00
parent 385bc8c09d
commit 0c9fa833a7

View File

@@ -912,6 +912,7 @@ static const struct dw_hdmi_plat_data rk3228_hdmi_drv_data = {
.phy_ops = &rk3228_hdmi_phy_ops,
.phy_name = "inno_dw_hdmi_phy",
.phy_force_vendor = true,
.ycbcr_420_allowed = true,
};
static struct rockchip_hdmi_chip_data rk3288_chip_data = {
@@ -927,6 +928,7 @@ static const struct dw_hdmi_plat_data rk3288_hdmi_drv_data = {
.phy_config = rockchip_phy_config,
.phy_data = &rk3288_chip_data,
.tmds_n_table = rockchip_werid_tmds_n_table,
.ycbcr_420_allowed = true,
};
static const struct dw_hdmi_phy_ops rk3328_hdmi_phy_ops = {
@@ -950,6 +952,7 @@ static const struct dw_hdmi_plat_data rk3328_hdmi_drv_data = {
.phy_ops = &rk3328_hdmi_phy_ops,
.phy_name = "inno_dw_hdmi_phy2",
.phy_force_vendor = true,
.ycbcr_420_allowed = true,
};
static struct rockchip_hdmi_chip_data rk3368_chip_data = {
@@ -963,6 +966,7 @@ static const struct dw_hdmi_plat_data rk3368_hdmi_drv_data = {
.cur_ctr = rockchip_cur_ctr,
.phy_config = rockchip_phy_config,
.phy_data = &rk3368_chip_data,
.ycbcr_420_allowed = true,
};
static struct rockchip_hdmi_chip_data rk3399_chip_data = {
@@ -978,6 +982,7 @@ static const struct dw_hdmi_plat_data rk3399_hdmi_drv_data = {
.cur_ctr = rockchip_cur_ctr,
.phy_config = rockchip_phy_config,
.phy_data = &rk3399_chip_data,
.ycbcr_420_allowed = true,
};
static const struct of_device_id dw_hdmi_rockchip_dt_ids[] = {