]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: a37xx: espressobin: Move U-Boot specific partitions node to -u-boot.dtsi
authorPali Rohár <pali@kernel.org>
Mon, 14 Feb 2022 10:34:28 +0000 (11:34 +0100)
committerStefan Roese <sr@denx.de>
Thu, 17 Feb 2022 13:17:07 +0000 (14:17 +0100)
U-Boot specific changes should be in armada-3720-espressobin-u-boot.dtsi DTS file.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-3720-espressobin-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/armada-3720-espressobin.dts

diff --git a/arch/arm/dts/armada-3720-espressobin-u-boot.dtsi b/arch/arm/dts/armada-3720-espressobin-u-boot.dtsi
new file mode 100644 (file)
index 0000000..7ec3392
--- /dev/null
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
+&spi0 {
+       spi-flash@0 {
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@firmware {
+                               reg = <0 CONFIG_ENV_OFFSET>;
+                               label = "firmware";
+                       };
+
+                       partition@u-boot-env {
+                               reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
+                               label = "u-boot-env";
+                       };
+               };
+       };
+};
+#endif
index f59f82d916325315f6c7a70ac63b308aeefbf9d9..c0e0e13953b67ba5a151884f377da5cfe0dd02ba 100644 (file)
                reg = <0>; /* Chip select 0 */
                spi-max-frequency = <50000000>;
                m25p,fast-read;
-
-#ifdef CONFIG_ENV_IS_IN_SPI_FLASH
-               partitions {
-                       compatible = "fixed-partitions";
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
-                       partition@firmware {
-                               reg = <0 CONFIG_ENV_OFFSET>;
-                               label = "firmware";
-                       };
-
-                       partition@u-boot-env {
-                               reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
-                               label = "u-boot-env";
-                       };
-               };
-#endif
        };
 };