|
发表于 2015-1-21 10:03:21
只看该作者
沙发
第一个问题:目前SDK是有这样的限制,可以修改驱动支持更长的指令数目,比如:
- diff --git a/kernel/drivers/video/rockchip/screen/lcd_mipi.c b/kernel/drivers/video/rockchip/screen/lcd_mipi.c
- index d9d35d2..9f8f5dc 100755
- --- a/kernel/drivers/video/rockchip/screen/lcd_mipi.c
- +++ b/kernel/drivers/video/rockchip/screen/lcd_mipi.c
- @@ -285,7 +285,7 @@ static int rk_mipi_screen_init_dt(struct mipi_screen *screen)
- struct list_head *pos;
- struct property *prop;
- enum of_gpio_flags flags;
- - u32 value, i, debug, gpio, ret, cmds[25], length;
- + u32 value, i, debug, gpio, ret, cmds[64], length;
-
- memset(screen, 0, sizeof(*screen));
-
- @@ -530,7 +530,7 @@ EXPORT_SYMBOL(rk_mipi_get_dsi_clk);
- static int rk_mipi_screen_init_dt(struct mipi_screen *screen)
- {
- struct mipi_dcs_cmd_ctr_list *dcs_cmd;
- - u32 i, cmds[20];
- + u32 i, cmds[64];
- int length;
- int err;
- int node;
- diff --git a/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h b/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
- index b06eafa..98fba27 100755
- --- a/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
- +++ b/kernel/drivers/video/rockchip/transmitter/mipi_dsi.h
- @@ -254,9 +254,9 @@ struct dcs_cmd {
- u8 dtype;
- u8 dsi_id;
- u8 cmd_len;
- - int cmds[32];
- + int cmds[64];
- int delay;
- - char name[32];
- + char name[64];
- };
-
- struct mipi_dcs_cmd_ctr_list {
复制代码
第二个问题:还是用的是主显啊,使用lcdc0 |
|