ARM: at91: at91sam9n12: add DT parameters to enable PMECC
authorJosh Wu <josh.wu@atmel.com>
Wed, 23 Jan 2013 12:47:10 +0000 (20:47 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 7 Feb 2013 15:45:06 +0000 (16:45 +0100)
Default ecc correctable setting is 2bits in 512 bytes.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91sam9n12.dtsi
arch/arm/boot/dts/at91sam9n12ek.dts

index 80e29c605d4e53de1a8f948b5acb0eb975aee641..a3a3fdbaf034dda3f93d1298888b8ba645bc8754 100644 (file)
                        reg = < 0x40000000 0x10000000
                                0xffffe000 0x00000600
                                0xffffe600 0x00000200
-                               0x00100000 0x00100000
+                               0x00108000 0x00018000
                               >;
+                       atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
                        atmel,nand-addr-offset = <21>;
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
index 0376bf4fd66b81860999a46e581f6879ce35592a..d400f8de4387f3fa4f89941ac2f40a1912e808e7 100644 (file)
 
                nand0: nand@40000000 {
                        nand-bus-width = <8>;
-                       nand-ecc-mode = "soft";
+                       nand-ecc-mode = "hw";
+                       atmel,has-pmecc;
+                       atmel,pmecc-cap = <2>;
+                       atmel,pmecc-sector-size = <512>;
                        nand-on-flash-bbt;
                        status = "okay";
                };