From 6185250c86af49ca12ca923c8fd3e70b37143310 Mon Sep 17 00:00:00 2001 From: GuEe-GUI <2991707448@qq.com> Date: Thu, 24 Oct 2024 12:00:15 +0800 Subject: [PATCH] [DM/FEATURE] Support clock subprobe in OFW Signed-off-by: GuEe-GUI <2991707448@qq.com> --- components/drivers/core/platform_ofw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/drivers/core/platform_ofw.c b/components/drivers/core/platform_ofw.c index 5b8fa92b67..1b1aa2733a 100644 --- a/components/drivers/core/platform_ofw.c +++ b/components/drivers/core/platform_ofw.c @@ -267,6 +267,12 @@ static int platform_ofw_device_probe(void) 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); if ((node = rt_ofw_get_child_by_compatible(ofw_node_chosen, "simple-framebuffer"))) {