[PATCH 0/5] Add device tree support of Atmel NAND driver

Raphaël Poggi poggi.raph at gmail.com
Fri Aug 1 06:23:19 PDT 2014


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

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

The second patch removes the NAND_ATMEL_PMECC config. With this removal
we can manage in a better way the device tree / non device tree probing of the driver, because the plateform data
and device tree share the same structure member and logics.

The third patch adds the has_pmecc on boards which need it.

The fourth 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.

The fifth patch adds the ecc_mode on boards which are missing it (boards which use NAND_ECC_SOFT).

Raphaël Poggi (5) :
	(1) mtd: atmel_nand: add support for device tree
	(2) mtd: nand: remove NAND_ATMEL_PMECC
	(3) board: atmel: initialise the has_pmecc member
	(4) mtd: atmel_nand: retrieve ecc_mode from pdata
	(5) board: atmel: initialise ecc_mode


 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/Kconfig                |    8 ---
 drivers/mtd/nand/atmel_nand.c           |  112 ++++++++++++++++++++++++++++++-
 12 files changed, 119 insertions(+), 11 deletions(-)




More information about the barebox mailing list