diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-07-28 17:46:39 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-08-13 17:12:36 +0200 |
commit | bc824cc03af5f4f39fed908e508527fcd2e867b9 (patch) | |
tree | 96673322a936ccd75695532414a5c08933b7eba8 /arch/arm | |
parent | 1168d2dd4b370155b499b995fde7da5a8782ead4 (diff) |
dts: rk3368: make timer0 accessible for SPL and TPL
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>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/dts/rk3368-lion-u-boot.dtsi | 5 | ||||
-rw-r--r-- | arch/arm/dts/rk3368.dtsi | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/dts/rk3368-lion-u-boot.dtsi b/arch/arm/dts/rk3368-lion-u-boot.dtsi index 2053fb1495..6052e8a8d3 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 22fb7e7894..b4f4f6139d 100644 --- a/arch/arm/dts/rk3368.dtsi +++ b/arch/arm/dts/rk3368.dtsi @@ -687,7 +687,7 @@ 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>; |