rk fb: fix disp error for box
authorhjc <hjc@rock-chips.com>
Mon, 18 Aug 2014 10:25:07 +0000 (18:25 +0800)
committerhjc <hjc@rock-chips.com>
Mon, 18 Aug 2014 10:25:07 +0000 (18:25 +0800)
arch/arm/boot/dts/lcd-box.dtsi
drivers/video/rockchip/rk_fb.c

index 8d7710b6cb47235952e632d70235700c56b0b238..d5822467d0c9eb30957595d61811ee2434cc538d 100755 (executable)
@@ -34,7 +34,7 @@
                disp_timings: display-timings {
                        native-mode = <&timing0>;
                        timing0: timing0 {
-                               screen-type = <SCREEN_RGB>;
+                               screen-type = <SCREEN_HDMI>;
                                out-face    = <OUT_P888>;
                                clock-frequency = <74250000>;
                                hactive = <1280>;
@@ -54,7 +54,7 @@
                                swap-gb = <0>;
                        };
                        timing1: timing1 {
-                               screen-type = <SCREEN_RGB>;
+                               screen-type = <SCREEN_HDMI>;
                                out-face    = <OUT_P888>;
                                clock-frequency = <148500000>;
                                hactive = <1920>;
@@ -74,7 +74,7 @@
                                swap-gb = <0>;
                        };
                        timing2: timing2 {
-                               screen-type = <SCREEN_RGB>;
+                               screen-type = <SCREEN_HDMI>;
                                out-face    = <OUT_P888>;
                                clock-frequency = <297000000>;
                                hactive = <3840>;
index 90bbcfb8d3207c53be7d3f0d4eed034b103e6584..f8819bf9fc44bb6df294f955caca828e00e10865 100755 (executable)
@@ -3490,6 +3490,11 @@ int rk_fb_disp_scale(u8 scale_x, u8 scale_y, u8 lcdc_id)
        u16 screen_x, screen_y;
        u16 xpos, ypos;
        char name[6];
+       struct rk_screen primary_screen;
+       rk_fb_get_prmry_screen(&primary_screen);
+       if (primary_screen.type == SCREEN_HDMI) {
+               return 0;
+       }
 
        sprintf(name, "lcdc%d", lcdc_id);