The serial driver is probed by SPL and/or board_init_f.  To get the
clock from the serial driver, the clock node must be marked as
u-boot,dm-pre-reloc.

Signed-off-by: Masahiro Yamada <yamada.masah...@socionext.com>
---

 arch/arm/dts/uniphier-v7-u-boot.dtsi |  8 ++++++++
 arch/arm/dts/uniphier-v8-u-boot.dtsi | 13 +++++++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 arch/arm/dts/uniphier-v8-u-boot.dtsi

diff --git a/arch/arm/dts/uniphier-v7-u-boot.dtsi 
b/arch/arm/dts/uniphier-v7-u-boot.dtsi
index 4a0c9c0..e3854fa 100644
--- a/arch/arm/dts/uniphier-v7-u-boot.dtsi
+++ b/arch/arm/dts/uniphier-v7-u-boot.dtsi
@@ -30,6 +30,14 @@
                        };
                };
 
+               perictrl@59820000 {
+                       u-boot,dm-pre-reloc;
+
+                       clock {
+                               u-boot,dm-pre-reloc;
+                       };
+               };
+
                soc-glue@5f800000 {
                        u-boot,dm-pre-reloc;
 
diff --git a/arch/arm/dts/uniphier-v8-u-boot.dtsi 
b/arch/arm/dts/uniphier-v8-u-boot.dtsi
new file mode 100644
index 0000000..3d83e62
--- /dev/null
+++ b/arch/arm/dts/uniphier-v8-u-boot.dtsi
@@ -0,0 +1,13 @@
+/ {
+       soc@0 {
+               u-boot,dm-pre-reloc;
+
+               perictrl@59820000 {
+                       u-boot,dm-pre-reloc;
+
+                       clock {
+                               u-boot,dm-pre-reloc;
+                       };
+               };
+       };
+};
-- 
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to