Skip to content
Snippets Groups Projects
Commit 5314bc2d authored by Josh Wu's avatar Josh Wu Committed by Nicolas Ferre
Browse files

ARM: at91: at91sam9x5: add DT parameters to enable PMECC


Default ecc correctable setting is 2bits in 512 bytes.

Signed-off-by: default avatarJosh Wu <josh.wu@atmel.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 88b62b91
No related branches found
No related tags found
No related merge requests found
...@@ -518,7 +518,11 @@ nand0: nand@40000000 { ...@@ -518,7 +518,11 @@ nand0: nand@40000000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
reg = <0x40000000 0x10000000 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-addr-offset = <21>;
atmel,nand-cmd-offset = <22>; atmel,nand-cmd-offset = <22>;
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -26,7 +26,10 @@ main_clock: clock@0 { ...@@ -26,7 +26,10 @@ main_clock: clock@0 {
ahb { ahb {
nand0: nand@40000000 { nand0: nand@40000000 {
nand-bus-width = <8>; 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; nand-on-flash-bbt;
status = "okay"; status = "okay";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment