ARM: at91: at91sam9x5: add DT parameters to enable PMECC
authorJosh Wu <josh.wu@atmel.com>
Wed, 23 Jan 2013 12:47:09 +0000 (20:47 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 7 Feb 2013 15:45:05 +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/at91sam9x5.dtsi
arch/arm/boot/dts/at91sam9x5cm.dtsi

index 8ecca6948d811f827e623e48f039238dad9fe6bf..8c8907757bf32f385f4a46fa63ef14426b3f6efa 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <1>;
                        reg = <0x40000000 0x10000000
+                              0xffffe000 0x600         /* PMECC Registers */
+                              0xffffe600 0x200         /* PMECC Error Location Registers */
+                              0x00108000 0x18000       /* PMECC looup table in ROM code  */
                              >;
+                       atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
                        atmel,nand-addr-offset = <21>;
                        atmel,nand-cmd-offset = <22>;
                        pinctrl-names = "default";
index 31e7be23703d258a49b58a2afb05bb16e780fcff..4027ac7e45028c83d8e52edb12be9ff7a6248a68 100644 (file)
        ahb {
                nand0: nand@40000000 {
                        nand-bus-width = <8>;
-                       nand-ecc-mode = "soft";
+                       nand-ecc-mode = "hw";
+                       atmel,has-pmecc;        /* Enable PMECC */
+                       atmel,pmecc-cap = <2>;
+                       atmel,pmecc-sector-size = <512>;
                        nand-on-flash-bbt;
                        status = "okay";
 
This page took 0.027094 seconds and 5 git commands to generate.