Skip to content

Add device tree support of Atmel NAND driver

Raphaël Poggi barebox 6 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 3/33 patches 1 replyApplied
  2. v3 posting 2/33 patches 1 replySuperseded
  3. v3 posting 1/30 of 2 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/25 patches5 repliesSuperseded
v2 posting 1/22 patches15 repliesSuperseded
v15 patches2 repliesSuperseded

Changes in v3 from the cover letter

* Combine in one patch the creation and initialisation of "has_pmecc" structure member
* Combine patch "[PATCH 3/5] mtd: atmel_nand: retrieve ecc_mode from pdata" and "[PATCH 4/5] board: atmel: initialise ecc_mode"
* Let NAND_ATMEL_PMECC config, but change the test in atmel_nand

Patches in v3 posting 3/3 Applied

#Subject and filesSizeRepliesApplied
1/3mtd: nand: add has_pmecc memberarch/arm/boards/at91sam9n12ek/init.c arch/arm/boards/at91sam9x5ek/init.c arch/arm/boards/sama5d3_xplained/init.c +3 more+6 -10 replies
2/3mtd: atmel_nand: retrieve ecc_mode from pdataarch/arm/boards/at91sam9260ek/init.c arch/arm/boards/at91sam9261ek/init.c arch/arm/boards/at91sam9263ek/init.c +3 more+6 -10 replies
3/3mtd: atmel_nand: add support for device treedrivers/mtd/nand/atmel_nand.c+110 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] Add device tree support of Atmel NAND driver

Change since v2:
* Combine in one patch the creation and initialisation of "has_pmecc" structure member
* Combine patch "[PATCH 3/5] mtd: atmel_nand: retrieve ecc_mode from pdata" and "[PATCH 4/5] board: atmel: initialise ecc_mode"
* Let NAND_ATMEL_PMECC config, but change the test in atmel_nand

Change since v1:
* Reorder patchs
* Fix some clean style issue.

This patchset adds the device tree support for the Atmel NAND driver.

The first patch add the has_pmecc structure member to be able to retrieve pmecc from device tree and adds the has_pmecc on boards which need it.

The second patch retrieves the ecc_mode from the plateform data, and remove this code:

        nand_chip->ecc.mode = NAND_ECC_SOFT;

which arbitrary sets the ecc.mode to NAND_ECC_SOFT and changes the value depending of the config and plateform data. With this, we can use the same logics for device tree and non device tree probing of the driver. It also adds the ecc_mode on boards which are missing it (boards which use NAND_ECC_SOFT).

The third patch adds the device tree in the atmel_nand driver.

Raphaël Poggi (4):
(1) mtd: nand: add has_pmecc member
(2) mtd: atmel_nand: retrieve ecc_mode from pdata
(3) mtd: atmel_nand: add support for device tree

 arch/arm/boards/at91sam9260ek/init.c    |    1 +
 arch/arm/boards/at91sam9261ek/init.c    |    1 +
 arch/arm/boards/at91sam9263ek/init.c    |    1 +
 arch/arm/boards/at91sam9m10g45ek/init.c |    1 +
 arch/arm/boards/at91sam9m10ihd/init.c   |    1 +
 arch/arm/boards/at91sam9n12ek/init.c    |    1 +
 arch/arm/boards/at91sam9x5ek/init.c     |    1 +
 arch/arm/boards/sama5d3_xplained/init.c |    1 +
 arch/arm/boards/sama5d3xek/init.c       |    1 +
 arch/arm/mach-at91/include/mach/board.h |    1 +
 drivers/mtd/nand/atmel_nand.c           |  115 ++++++++++++++++++++++++++++++-
 11 files changed, 122 insertions(+), 3 deletions(-)

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox