summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-06-03 22:20:02 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-07 09:04:44 +0200
commitd87cf1f4a7a7c9fa158abbddef091406e56f01e7 (patch)
tree4898880cb52b204186069774023be03ecdaa3931
parent8daaa21b3949e5e327586a49a63dfcacd5600aba (diff)
downloadbarebox-d87cf1f4a7a7c9fa158abbddef091406e56f01e7.tar.gz
barebox-d87cf1f4a7a7c9fa158abbddef091406e56f01e7.tar.xz
ARM: rdu2: Add U-Boot environment partitions
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/dts/imx6qdl-zii-rdu2.dtsi27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/dts/imx6qdl-zii-rdu2.dtsi b/arch/arm/dts/imx6qdl-zii-rdu2.dtsi
index bfc75ba606..c9a243c229 100644
--- a/arch/arm/dts/imx6qdl-zii-rdu2.dtsi
+++ b/arch/arm/dts/imx6qdl-zii-rdu2.dtsi
@@ -47,6 +47,12 @@
compatible = "barebox,environment";
device-path = &nor_flash, "partname:barebox-environment";
};
+
+ ubootenv {
+ compatible = "barebox,uboot-environment";
+ device-path-0 = &uboot_env_0;
+ device-path-1 = &uboot_env_1;
+ };
};
device-info {
@@ -249,6 +255,27 @@
dr_mode = "otg";
};
+&usdhc4 {
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ /*
+ * Layout info is taken from /etc/fw_env.config
+ */
+ uboot_env_0: partition@c0000 {
+ label = "uboot-environment-0";
+ reg = <0xc0000 0x4000>;
+ };
+
+ uboot_env_1: partition@cc800 {
+ label = "uboot-environment-1";
+ reg = <0xcc800 0x4000>;
+ };
+ };
+};
+
&gpio3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio3_hog>;