mtd: atmel_nand: introduce a new compatible string for sama5d4 chip
authorWu, Josh <Josh.wu@atmel.com>
Mon, 19 Jan 2015 08:33:06 +0000 (16:33 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 20 Jan 2015 20:47:01 +0000 (12:47 -0800)
Since in SAMA5D4 chip, the PMECC can correct bit flips in erased page.
So we add a DT property to indicate this hardware character.

If the PMECC support correct bitflip erased page (all data are 0xff).
Then we can use the PMECC correct the page and skip the erased page
check.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Documentation/devicetree/bindings/mtd/atmel-nand.txt
drivers/mtd/nand/atmel_nand.c

index 1fe6dde..7d4c8eb 100644 (file)
@@ -1,7 +1,7 @@
 Atmel NAND flash
 
 Required properties:
-- compatible : "atmel,at91rm9200-nand".
+- compatible : should be "atmel,at91rm9200-nand" or "atmel,sama5d4-nand".
 - reg : should specify localbus address and size used for the chip,
        and hardware ECC controller if available.
        If the hardware ECC is PMECC, it should contain address and size for
Simple merge