Skip to content

Commit 34902c2

Browse files
Liu Yinglumag
authored andcommitted
drm: of: Get MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA, SPWG} LVDS data mappings
Add MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG} support in drm_of_lvds_get_data_mapping() function implementation so that function callers may get the two LVDS data mappings. Signed-off-by: Liu Ying <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 5205b63 commit 34902c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/drm_of.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,9 @@ EXPORT_SYMBOL_GPL(drm_of_lvds_get_dual_link_pixel_order);
410410
* Return:
411411
* * MEDIA_BUS_FMT_RGB666_1X7X3_SPWG - data-mapping is "jeida-18"
412412
* * MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA - data-mapping is "jeida-24"
413+
* * MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA - data-mapping is "jeida-30"
413414
* * MEDIA_BUS_FMT_RGB888_1X7X4_SPWG - data-mapping is "vesa-24"
415+
* * MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG - data-mapping is "vesa-30"
414416
* * -EINVAL - the "data-mapping" property is unsupported
415417
* * -ENODEV - the "data-mapping" property is missing
416418
*/
@@ -427,8 +429,12 @@ int drm_of_lvds_get_data_mapping(const struct device_node *port)
427429
return MEDIA_BUS_FMT_RGB666_1X7X3_SPWG;
428430
if (!strcmp(mapping, "jeida-24"))
429431
return MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA;
432+
if (!strcmp(mapping, "jeida-30"))
433+
return MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA;
430434
if (!strcmp(mapping, "vesa-24"))
431435
return MEDIA_BUS_FMT_RGB888_1X7X4_SPWG;
436+
if (!strcmp(mapping, "vesa-30"))
437+
return MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG;
432438

433439
return -EINVAL;
434440
}

0 commit comments

Comments
 (0)