[13/15] rockchip: Allow including rockchip dtsi on 32-bit machines

Message ID 20200608192024.21484-10-sjg@chromium.org
State New
Headers show
Series
  • rockchip: Support building ROM files automatically
Related show

Commit Message

Simon Glass June 8, 2020, 7:20 p.m.
At present this file supports only 64-bit machines. Add an #ifdef so that
it can be included without problems on 32-bit machines also.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/arm/dts/rockchip-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi
index a2559e2db0..d2542f2230 100644
--- a/arch/arm/dts/rockchip-u-boot.dtsi
+++ b/arch/arm/dts/rockchip-u-boot.dtsi
@@ -6,6 +6,7 @@ 
 #include <config.h>
 
 / {
+#ifdef CONFIG_ARM64
 	binman {
 		filename = "u-boot-rockchip.bin";
 		pad-byte = <0xff>;
@@ -18,4 +19,5 @@ 
 			offset = <CONFIG_SPL_PAD_TO>;
 		};
 	};
+#endif
 };