mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
![Neil Armstrong](/assets/img/avatar_default.png)
This adds video output support for Amlogic GXBB/GXL/GXM chips. The supported ports are CVBS and HDMI (based on DW_HDMI). When using HDMI, only DMT modes are supported. There is support for simple-framebuffer (CONFIG_VIDEO_DT_SIMPLEFB) Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Jorge Ramire-Ortiz <jramirez@baylibre.com> Signed-off-by: Maxime Jourdan <mjourdan@baylibre.com> [narmstrong: fixed defines alignment in meson_canvas.c] Reviewed-by: Anatolij Gustschin <agust@denx.de>
30 lines
786 B
C
30 lines
786 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Common code for Amlogic SimpleFB with pipeline.
|
|
*
|
|
* (C) Copyright 2013-2014 Luc Verhaegen <libv@skynet.be>
|
|
* (C) Copyright 2014-2015 Hans de Goede <hdegoede@redhat.com>
|
|
* (C) Copyright 2017 Icenowy Zheng <icenowy@aosc.io>
|
|
*/
|
|
|
|
#include <fdtdec.h>
|
|
|
|
int meson_simplefb_fdt_match(void *blob, const char *pipeline)
|
|
{
|
|
int offset, ret;
|
|
|
|
/* Find a prefilled simpefb node, matching out pipeline config */
|
|
offset = fdt_node_offset_by_compatible(blob, -1,
|
|
"amlogic,simple-framebuffer");
|
|
while (offset >= 0) {
|
|
ret = fdt_stringlist_search(blob, offset, "amlogic,pipeline",
|
|
pipeline);
|
|
if (ret == 0)
|
|
break;
|
|
offset = fdt_node_offset_by_compatible(blob, offset,
|
|
"amlogic,simple-framebuffer");
|
|
}
|
|
|
|
return offset;
|
|
}
|