Files

27 lines
671 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Common code for Amlogic SimpleFB with pipeline.
*
* (C) Copyright 2013-2014 Luc Verhaegen <[email protected]>
* (C) Copyright 2014-2015 Hans de Goede <[email protected]>
* (C) Copyright 2017 Icenowy Zheng <[email protected]>
*/
#include <fdt_support.h>
int meson_simplefb_fdt_match(void *blob, const char *pipeline)
{
int offset, ret;
/* Find a prefilled simpefb node, matching out pipeline config */
fdt_for_each_node_by_compatible(offset, blob, -1,
"amlogic,simple-framebuffer") {
ret = fdt_stringlist_search(blob, offset, "amlogic,pipeline",
pipeline);
if (ret == 0)
break;
}
return offset;
}