]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: am437x-gp-evm: Use BCH16 ECC scheme instead of BCH8
authorRoger Quadros <rogerq@ti.com>
Tue, 2 Sep 2014 13:57:03 +0000 (16:57 +0300)
committerTony Lindgren <tony@atomide.com>
Thu, 4 Sep 2014 19:39:01 +0000 (12:39 -0700)
am437x-gp-evm uses a NAND chip with page size 4096 bytes
and spare area of 225 bytes per page.

For such a setup it is preferrable to use BCH16 ECC scheme over
BCH8. This also makes it compatible with ROM code ECC scheme so
we can boot with NAND after flashing from kernel.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Reviewed-by: Pekon Gupta <pekon@pek-sem.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am437x-gp-evm.dts

index 9559c1962ac8f5a4d88b2254124997a0a3b6ef48..bd64159e6b3262f9f59c88676589e997156815d7 100644 (file)
        ranges = <0 0 0 0x01000000>;    /* minimum GPMC partition = 16MB */
        nand@0,0 {
                reg = <0 0 4>;          /* device IO registers */
-               ti,nand-ecc-opt = "bch8";
+               ti,nand-ecc-opt = "bch16";
                ti,elm-id = <&elm>;
                nand-bus-width = <8>;
                gpmc,device-width = <1>;