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>;
swap-gb = <0>;
};
timing1: timing1 {
- screen-type = <SCREEN_RGB>;
+ screen-type = <SCREEN_HDMI>;
out-face = <OUT_P888>;
clock-frequency = <148500000>;
hactive = <1920>;
swap-gb = <0>;
};
timing2: timing2 {
- screen-type = <SCREEN_RGB>;
+ screen-type = <SCREEN_HDMI>;
out-face = <OUT_P888>;
clock-frequency = <297000000>;
hactive = <3840>;
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);