[RFC PATCH 2/2] arm: rockchip-rk3568-evb: apply dt overlay for evb7
Michael Riesch
michael.riesch at wolfvision.net
Tue Jun 29 05:31:04 PDT 2021
Signed-off-by: Michael Riesch <michael.riesch at wolfvision.net>
---
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
More information about the barebox
mailing list