If the sandbox device tree is provided to U-Boot (with the -d flag) then it
will use the device tree version in preference to the built-in device. The
only difference is the colour.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 arch/sandbox/dts/sandbox.dts | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index 62d8037..98008de 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -1,6 +1,17 @@
 /dts-v1/;
 
 / {
+       alias {
+               console = <&uart0>;
+       };
+
+       uart0: serial {
+               compatible = "sandbox,serial";
+               dm,pre-reloc;
+               dm,prefer;
+               text-colour = "cyan";
+       };
+
        triangle {
                compatible = "demo-shape";
                colour = "cyan";
-- 
1.9.1.423.g4596e3a

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to