diff options
| author | GuEe-GUI <[email protected]> | 2025-12-13 01:24:54 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-13 16:35:32 +0800 |
| commit | cbf3f8c3b4fbdd3391bf3c8d1300c7854729a1ca (patch) | |
| tree | d8fc72fff8d06ba253c1c000b6284de3a95cdc33 | |
| parent | 1b4111a99e63cc731a51da9459e24b02692aa768 (diff) | |
[dm][core] Update the OFW CLk init flow
The clock should init before common platform devices.
Signed-off-by: GuEe-GUI <[email protected]>
| -rw-r--r-- | components/drivers/core/platform_ofw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/drivers/core/platform_ofw.c b/components/drivers/core/platform_ofw.c index dbe091935e..38065dd3eb 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) if (ofw_node_root) { + 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_root); err = platform_ofw_device_probe_once(ofw_node_root); @@ -279,12 +285,6 @@ 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"))) { |
