Skip to content

Commit 6185250

Browse files
GuEe-GUIRbb666
authored andcommitted
[DM/FEATURE] Support clock subprobe in OFW
Signed-off-by: GuEe-GUI <[email protected]>
1 parent cefe6d6 commit 6185250

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: components/drivers/core/platform_ofw.c

+6
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ static int platform_ofw_device_probe(void)
267267
rt_ofw_node_put(node);
268268
}
269269

270+
if ((node = rt_ofw_find_node_by_path("/clocks")))
271+
{
272+
platform_ofw_device_probe_once(node);
273+
rt_ofw_node_put(node);
274+
}
275+
270276
rt_ofw_node_get(ofw_node_chosen);
271277
if ((node = rt_ofw_get_child_by_compatible(ofw_node_chosen, "simple-framebuffer")))
272278
{

0 commit comments

Comments
 (0)