]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: dts: zynqmp: make hw-ecc as the default ecc mode
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Mon, 25 Mar 2024 09:50:13 +0000 (15:20 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 2 Apr 2024 13:08:46 +0000 (15:08 +0200)
Except for Linux no other component (i.e., u-boot, fsbl
or BootRom) of the software stack supports software ecc
engine. So, make hw-ecc as the default ecc mode.
Update the same for mini u-boot nand configuration as well.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20240325095013.29497-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/dts/zynqmp-mini-nand.dts
arch/arm/dts/zynqmp-zc1751-xm017-dc3.dts

index e0517cf46017178b841befbfb742f92c802b96a0..5889d436edb8478698141303be13c44592c514d3 100644 (file)
                        #size-cells = <1>;
                        arasan,has-mdma;
                        num-cs = <2>;
+                       nand@0 {
+                               reg = <0>;
+                               #address-cells = <2>;
+                               #size-cells = <1>;
+                               nand-ecc-mode = "hw";
+                       };
                };
        };
 };
index b97f7ee8d44f7a5090d7c3cceba618d29694e0c7..48ab619472e057f4a12a11289f50d174edd90904 100644 (file)
                reg = <0x0>;
                #address-cells = <0x2>;
                #size-cells = <0x1>;
-               nand-ecc-mode = "soft";
-               nand-ecc-algo = "bch";
+               nand-ecc-mode = "hw";
                nand-rb = <0>;
                label = "main-storage-0";
                nand-ecc-step-size = <1024>;
                reg = <0x1>;
                #address-cells = <0x2>;
                #size-cells = <0x1>;
-               nand-ecc-mode = "soft";
-               nand-ecc-algo = "bch";
+               nand-ecc-mode = "hw";
                nand-rb = <0>;
                label = "main-storage-1";
                nand-ecc-step-size = <1024>;