]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
dts: rk3368: make timer0 accessible for SPL and TPL
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Jul 2017 15:46:39 +0000 (17:46 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:36 +0000 (17:12 +0200)
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@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3368-lion-u-boot.dtsi
arch/arm/dts/rk3368.dtsi

index 2053fb149544a11ee3b863c47aa048db22fc85f3..6052e8a8d38926ed2ccf92a3b04c5e1792134a87 100644 (file)
@@ -85,4 +85,9 @@
        };
 };
 
+&timer0 {
+       u-boot,dm-pre-reloc;
+       clock-frequency = <24000000>;
+};
+
 
index 22fb7e7894343752824f3d3f8ae97aa50cfd2df7..b4f4f6139dba2d81c8b104a38726ee0db504ff48 100644 (file)
                status = "disabled";
        };
 
-       timer@ff810000 {
+       timer0: timer@ff810000 {
                compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
                reg = <0x0 0xff810000 0x0 0x20>;
                interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;