Commit c20449e5 authored by Troy Kisky's avatar Troy Kisky

fbpanel: add jeida/spwg/split-mode support to mipi panels

Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
parent b3e69f41
......@@ -387,6 +387,25 @@ static void setup_cmd_fb(unsigned fb, const struct display_info_t *di, char *buf
buf += sz;
size -= sz;
}
} else if (fb == FB_MIPI) {
sz = snprintf(buf, size,
"fdt set %s dsi-format %s;", fbnames[fb], (interface_width == 24) ? "rgb888" : "rgb666");
buf += sz;
size -= sz;
if ((di->addr_num == 0x2c) || (di->fbflags & (FBF_JEIDA | FBF_SPLITMODE))) {
if (interface_width == 24) {
sz = snprintf(buf, size,
"fdt set mipi_to_lvds %s;", (di->fbflags & FBF_JEIDA) ? "jeida" : "spwg");
buf += sz;
size -= sz;
}
if (di->fbflags & FBF_SPLITMODE) {
sz = snprintf(buf, size, "fdt set mipi_to_lvds split-mode;");
buf += sz;
size -= sz;
}
}
}
if (di->fbflags & FBF_PINCTRL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment