Skip to content
Snippets Groups Projects
Commit 8112b025 authored by Mikhail Vanyulin's avatar Mikhail Vanyulin
Browse files

dto: panel: add a handler for lvds.mode to activate Dual channel


To make dual channel LVDS work, add a handler for "mode" variable in
config.xml by analogy with Jethro. So if Dual channel display is used,
this variable should be set to "spl0" value.

Signed-off-by: default avatarMikhail Vanyulin <mikhail.vanyulin@rtsoft.de>
parent a95edfa9
No related branches found
No related tags found
1 merge request!87platform: add support of SantVend
......@@ -501,6 +501,28 @@ static int create_panel_frag(void *dto_mem, const struct guf_xml_data *config)
return 0;
}
static int create_ldb_frag(void *dto_mem, const struct guf_xml_data *config)
{
int err = 0;
if(!config || !config->display.name)
return 0;
err = create_label_fragment(dto_mem, "ldb");
DTO_ERR(err);
{
int offs = err;
if (config->lvds.mode && (!strcmp(config->lvds.mode, "spl0"))) {
err = fdt_setprop_empty(dto_mem, offs,
"fsl,dual-channel");
DTO_ERR(err);
}
}
return 0;
}
int create_property_fixup(void *dto_mem, int *offs, const char* prop,
int prop_offs, const char* fixup)
{
......@@ -650,6 +672,8 @@ int dto_populate_dto(void *dto_mem,
err = create_panel_frag(dto_mem, config);
DTO_ERR(err);
err = create_ldb_frag(dto_mem, config);
DTO_ERR(err);
err = create_padctl_pwm1_frag(dto_mem, config);
DTO_ERR(err);
err = create_backlight_frag(dto_mem, config);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment