diff mbox

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

Message ID 1501259510-23604-5-git-send-email-philipp.tomsich@theobroma-systems.com
State RFC
Delegated to: Philipp Tomsich
Headers show

Commit Message

Philipp Tomsich July 28, 2017, 4:31 p.m. UTC
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>
---

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

Comments

Simon Glass Aug. 1, 2017, 9:48 a.m. UTC | #1
On 28 July 2017 at 10:31, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> 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>
> ---
>
>  arch/arm/dts/rk3368-lion-u-boot.dtsi | 2 +-
>  arch/arm/dts/rk3368.dtsi             | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/arch/arm/dts/rk3368-lion-u-boot.dtsi b/arch/arm/dts/rk3368-lion-u-boot.dtsi
index 024eb2e..74c6e55 100644
--- a/arch/arm/dts/rk3368-lion-u-boot.dtsi
+++ b/arch/arm/dts/rk3368-lion-u-boot.dtsi
@@ -85,7 +85,7 @@ 
 	};
 };
 
-&stimer1 {
+&timer0 {
 	u-boot,dm-pre-reloc;
 };
 
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@ff810000 {
+	timer0: timer@ff810000 {
 		compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
 		reg = <0x0 0xff810000 0x0 0x20>;
 		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;