|
发表于 2015-12-24 19:24:04
只看该作者
12#
dsihost1 有看到東西了.
另外有一個疑問, 在rk32_mipi_dsi.c, line 1600 附近,
if (rk_mipi_get_dsi_num() == 1) {
if (lcdc_id == 1)
/* 1'b1: VOP LIT output to DSI host0;1'b0: VOP BIG output to DSI host0 */
val0 = 0x1 << 22 | 0x1 << 6;
else
val0 = 0x1 << 22 | 0x0 << 6;
writel_relaxed(val0, RK_GRF_VIRT + RK3288_GRF_SOC_CON6);
} else {
if (lcdc_id == 1) {
val0 = 0x1 << 25 | 0x1 << 9 | 0x1 << 22 | 0x1 << 6;
val1 = 0x1 << 31 | 0x1 << 30 | 0x0 << 15 | 0x1 << 14;
} else {
val0 = 0x1 << 25 | 0x0 << 9 | 0x1 << 22 | 0x0 << 14;
val1 = 0x1 << 31 | 0x1 << 30 | 0x0 << 15 | 0x1 << 14;
}
writel_relaxed(val0, RK_GRF_VIRT + RK3288_GRF_SOC_CON6);
writel_relaxed(val1, RK_GRF_VIRT + RK3288_GRF_SOC_CON14);
}
是否有錯誤, 應該改成
} else {
val0 = 0x1 << 25 | 0x0 << 9 | 0x1 << 22 | 0x0 << 6;
val1 = 0x1 << 31 | 0x1 << 30 | 0x0 << 15 | 0x1 << 14;
bit 6是grf_con_dsi0_lcdc_sel, bit 9 是grf_con_dsi1_lcdc_sel.
|
|