From: Huang Jiachai Date: Wed, 12 Oct 2016 10:14:26 +0000 (+0800) Subject: video: rockchip: fb: add support cmd mode X-Git-Tag: firefly_0821_release~1356 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=42c0b62ce09b2265fee7143c07acdad07e50ad9a;p=firefly-linux-kernel-4.4.55.git video: rockchip: fb: add support cmd mode Change-Id: I5b6ce2d439b54c0c1d133e8a3e19ae364ff0ce16 Signed-off-by: Huang Jiachai --- diff --git a/include/dt-bindings/display/rk_fb.h b/include/dt-bindings/display/rk_fb.h index 36a82cfc54bf..81c98558771c 100755 --- a/include/dt-bindings/display/rk_fb.h +++ b/include/dt-bindings/display/rk_fb.h @@ -81,6 +81,9 @@ #define IS_YUV_COLOR(x) ((x) >= COLOR_YCBCR) +#define SCREEN_VIDEO_MODE 0 +#define SCREEN_CMD_MODE 1 + /* fb win map */ #define FB_DEFAULT_ORDER 0 #define FB0_WIN2_FB1_WIN1_FB2_WIN0 12 diff --git a/include/linux/rk_fb.h b/include/linux/rk_fb.h index 086e744d23ce..f1b39644b836 100755 --- a/include/linux/rk_fb.h +++ b/include/linux/rk_fb.h @@ -496,6 +496,8 @@ struct rk_fb_trsm_ops { int (*disable)(void); int (*dsp_pwr_on) (void); int (*dsp_pwr_off) (void); + void (*refresh)(unsigned int xpos, unsigned int ypos, + unsigned int xsize, unsigned int ysize); }; struct rk_lcdc_drv_ops { @@ -670,6 +672,7 @@ struct rk_fb_reg_data { struct rk_lcdc_driver { char name[6]; + int te_irq; int id; int prop; struct device *dev;