[DM/FEATURE] Support clock subprobe in OFW

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-10-24 12:00:15 +08:00 committed by Rbb666
parent cefe6d6380
commit 6185250c86
1 changed files with 6 additions and 0 deletions

View File

@ -267,6 +267,12 @@ static int platform_ofw_device_probe(void)
rt_ofw_node_put(node); rt_ofw_node_put(node);
} }
if ((node = rt_ofw_find_node_by_path("/clocks")))
{
platform_ofw_device_probe_once(node);
rt_ofw_node_put(node);
}
rt_ofw_node_get(ofw_node_chosen); rt_ofw_node_get(ofw_node_chosen);
if ((node = rt_ofw_get_child_by_compatible(ofw_node_chosen, "simple-framebuffer"))) if ((node = rt_ofw_get_child_by_compatible(ofw_node_chosen, "simple-framebuffer")))
{ {