summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-10-24 12:00:15 +0800
committerRbb666 <[email protected]>2024-11-18 15:03:23 +0800
commit6185250c86af49ca12ca923c8fd3e70b37143310 (patch)
treecc8b2a62d34bc24b5bdafc0064f82799ad956cda /components/drivers
parentcefe6d63805b89fb96aea69eb8e14fa12260192a (diff)
[DM/FEATURE] Support clock subprobe in OFW
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/core/platform_ofw.c6
1 files changed, 6 insertions, 0 deletions
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")))
{