From: hhb Date: Fri, 21 Jun 2013 06:17:32 +0000 (+0800) Subject: rk_screen.c add mipi config X-Git-Tag: firefly_0821_release~6965^2~39 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=686f12e57a5ac63d0e351da6fe106eb46d0d2d78;p=firefly-linux-kernel-4.4.55.git rk_screen.c add mipi config --- diff --git a/drivers/video/rockchip/screen/rk_screen.c b/drivers/video/rockchip/screen/rk_screen.c index 06a0d00ad4df..d0c3975d2e53 100644 --- a/drivers/video/rockchip/screen/rk_screen.c +++ b/drivers/video/rockchip/screen/rk_screen.c @@ -230,10 +230,21 @@ void set_lcd_info(struct rk29fb_screen *screen, struct rk29lcd_info *lcd_info ) #if defined(CONFIG_MIPI_DSI) /* MIPI DSI */ +#if defined(MIPI_DSI_LANE) screen->dsi_lane = MIPI_DSI_LANE; +#else + screen->dsi_lane = 4; +#endif //screen->dsi_video_mode = MIPI_DSI_VIDEO_MODE; +#if defined(MIPI_DSI_HS_CLK) screen->hs_tx_clk = MIPI_DSI_HS_CLK; +#else + screen->hs_tx_clk = 1000000000; //1GHz +#endif + #endif + + /* Operation function*/ #if defined(RK_SCREEN_INIT) //some screen need to init by spi or i2c screen->init = rk_lcd_init;