diff options
author | Josh Wu <josh.wu@atmel.com> | 2013-01-23 07:47:09 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-02-07 10:45:05 -0500 |
commit | 5314bc2de94c85847f9c0f2be586bac54e6a19f4 (patch) | |
tree | f383eb5afcf0f35e7dedccb319e071f70afb6567 | |
parent | 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7 (diff) |
ARM: at91: at91sam9x5: add DT parameters to enable PMECC
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>
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5.dtsi | 4 | ||||
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5cm.dtsi | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 8ecca6948d81..8c8907757bf3 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts/at91sam9x5.dtsi | |||
@@ -518,7 +518,11 @@ | |||
518 | #address-cells = <1>; | 518 | #address-cells = <1>; |
519 | #size-cells = <1>; | 519 | #size-cells = <1>; |
520 | reg = <0x40000000 0x10000000 | 520 | reg = <0x40000000 0x10000000 |
521 | 0xffffe000 0x600 /* PMECC Registers */ | ||
522 | 0xffffe600 0x200 /* PMECC Error Location Registers */ | ||
523 | 0x00108000 0x18000 /* PMECC looup table in ROM code */ | ||
521 | >; | 524 | >; |
525 | atmel,pmecc-lookup-table-offset = <0x0 0x8000>; | ||
522 | atmel,nand-addr-offset = <21>; | 526 | atmel,nand-addr-offset = <21>; |
523 | atmel,nand-cmd-offset = <22>; | 527 | atmel,nand-cmd-offset = <22>; |
524 | pinctrl-names = "default"; | 528 | pinctrl-names = "default"; |
diff --git a/arch/arm/boot/dts/at91sam9x5cm.dtsi b/arch/arm/boot/dts/at91sam9x5cm.dtsi index 31e7be23703d..4027ac7e4502 100644 --- a/arch/arm/boot/dts/at91sam9x5cm.dtsi +++ b/arch/arm/boot/dts/at91sam9x5cm.dtsi | |||
@@ -26,7 +26,10 @@ | |||
26 | ahb { | 26 | ahb { |
27 | nand0: nand@40000000 { | 27 | nand0: nand@40000000 { |
28 | nand-bus-width = <8>; | 28 | nand-bus-width = <8>; |
29 | nand-ecc-mode = "soft"; | 29 | nand-ecc-mode = "hw"; |
30 | atmel,has-pmecc; /* Enable PMECC */ | ||
31 | atmel,pmecc-cap = <2>; | ||
32 | atmel,pmecc-sector-size = <512>; | ||
30 | nand-on-flash-bbt; | 33 | nand-on-flash-bbt; |
31 | status = "okay"; | 34 | status = "okay"; |
32 | 35 | ||