]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: armada-385-turris-omnia: add `u-boot-env` NOR partition
authorMarek Behún <marek.behun@nic.cz>
Thu, 15 Jul 2021 17:21:01 +0000 (19:21 +0200)
committerStefan Roese <sr@denx.de>
Mon, 19 Jul 2021 07:05:30 +0000 (09:05 +0200)
Specify a separate partition `u-boot-env` for U-Boot's env settings for
the Turris Omnia board.

Do this only in U-Boot's specific DTS. We do not want to do this in
Linux' official DTS, because Omnia's stock U-Boot stores env at a
different address, and there are still boards with stock U-Boot.

In a subsequent patch will add board code that fixes Linux's DTB before
booting Linux.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-385-turris-omnia-u-boot.dtsi

index af0655daaa02bdb9ce5e5161227f139f09f73b79..3ff76c946294fa2b870ad6fb6bf95ae98dab7ad8 100644 (file)
 
        spi-nor@0 {
                u-boot,dm-pre-reloc;
+
+               partitions {
+                       partition@0 {
+                               reg = <0x0 CONFIG_ENV_OFFSET>;
+                       };
+
+                       partition@f0000 {
+                               reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
+                               label = "u-boot-env";
+                       };
+               };
        };
 };