[RFC PATCH 2/2] arm: rockchip-rk3568-evb: apply dt overlay for evb7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxxx>
---
 arch/arm/boards/rockchip-rk3568-evb/board.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boards/rockchip-rk3568-evb/board.c b/arch/arm/boards/rockchip-rk3568-evb/board.c
index ee8e1b979..5b20e016a 100644
--- a/arch/arm/boards/rockchip-rk3568-evb/board.c
+++ b/arch/arm/boards/rockchip-rk3568-evb/board.c
@@ -4,6 +4,7 @@
 #include <mach/bbu.h>
 #include <aiodev.h>
 #include <bootsource.h>
+#include <environment.h>
 
 static int rk3568_evb_probe(struct device_d *dev)
 {
@@ -63,6 +64,9 @@ static int rk3568_evb_detect_version(void)
 		evb_hw_id = 6;
 	} else {
 		evb_hw_id = 7;
+		setenv("global.of.overlay.dir", "boot");
+		setenv("global.of.overlay.filepattern",
+		       "rk3568-evb7-overlay.dtb*");
 	}
 
 	pr_info("Detected RK3568 EVB%d\n", evb_hw_id);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux