[U-Boot] [PATCH v2 4/6] dts: rk3368: make timer0 accessible for SPL and TPL

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Wed Aug 2 20:40:00 UTC 2017


To use it with the DM timer driver in SPL and TPL, timer0 needs to be
marked as pre-reloc.

Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
Reviewed-by: Simon Glass <sjg at chromium.org>

---

Changes in v2:
- add 'clock-frequency' prop to timer in the -u-boot.dtsi

 arch/arm/dts/rk3368-lion-u-boot.dtsi | 5 +++++
 arch/arm/dts/rk3368.dtsi             | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/rk3368-lion-u-boot.dtsi b/arch/arm/dts/rk3368-lion-u-boot.dtsi
index 2053fb1..6052e8a 100644
--- a/arch/arm/dts/rk3368-lion-u-boot.dtsi
+++ b/arch/arm/dts/rk3368-lion-u-boot.dtsi
@@ -85,4 +85,9 @@
 	};
 };
 
+&timer0 {
+	u-boot,dm-pre-reloc;
+	clock-frequency = <24000000>;
+};
+
 
diff --git a/arch/arm/dts/rk3368.dtsi b/arch/arm/dts/rk3368.dtsi
index 22fb7e7..b4f4f61 100644
--- a/arch/arm/dts/rk3368.dtsi
+++ b/arch/arm/dts/rk3368.dtsi
@@ -687,7 +687,7 @@
 		status = "disabled";
 	};
 
-	timer at ff810000 {
+	timer0: timer at ff810000 {
 		compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
 		reg = <0x0 0xff810000 0x0 0x20>;
 		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
-- 
2.1.4



More information about the U-Boot mailing list