This adds support for a persistent environment on the first
FAT partition on the SD card, next to the barebox binary.

Signed-off-by: Lucas Stach <[email protected]>
---
 arch/arm/dts/zynq-zed.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/dts/zynq-zed.dts b/arch/arm/dts/zynq-zed.dts
index 25b4d6df2937..2a166189d683 100644
--- a/arch/arm/dts/zynq-zed.dts
+++ b/arch/arm/dts/zynq-zed.dts
@@ -4,6 +4,12 @@
 / {
        chosen {
                stdout-path = &uart1;
+
+               environment-sd {
+                       compatible = "barebox,environment";
+                       device-path = &sdhci0, "partname:0";
+                       file-path = "barebox.env";
+               };
        };
 };
 
-- 
2.47.1


Reply via email to