video: rockchip: vop: add ourput color bt601, bt709, bt2020
[firefly-linux-kernel-4.4.55.git] / drivers / video / of_display_timing.c
index 6c2fc91aae0b2877b6f74e9d78f0260104d5f08d..b253875e99c74aebe60172169d33a371fca076e9 100644 (file)
@@ -107,12 +107,20 @@ static int of_parse_display_timing(const struct device_node *np,
                dt->flags |= val ? DISPLAY_FLAGS_SWAP_RB : 0;
        if (!of_property_read_u32(np, "screen-type", &val))
                dt->screen_type = val;
+       if (!of_property_read_u32(np, "refresh-mode", &val))
+               dt->refresh_mode = val;
+       else
+               dt->refresh_mode = 0;
        if (!of_property_read_u32(np, "lvds-format", &val))
                dt->lvds_format = val;
        if (!of_property_read_u32(np, "out-face", &val))
                dt->face = val;
        if (!of_property_read_u32(np, "color-mode", &val))
-               dt->color_mode = val;
+                dt->color_mode = val;
+       if (!of_property_read_u32(np, "screen-width", &val))
+                dt->screen_widt = val;
+       if (!of_property_read_u32(np, "screen-hight", &val))
+                dt->screen_hight = val;
        prop = of_find_property(np, "dsp-lut", &length);
        if (prop) {
                dt->dsp_lut = kzalloc(length, GFP_KERNEL);