From af8e7d3a6e765f4c318feac1197abf079e4c3719 Mon Sep 17 00:00:00 2001 From: Raphaël Poggi Date: Mon, 1 Sep 2014 14:27:33 +0200 Subject: mtd: nand: add has_pmecc member MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By adding this structure member, we can retrieve the pmecc config, through the device tree. Signed-off-by: Raphaël Poggi Signed-off-by: Sascha Hauer --- arch/arm/boards/at91sam9n12ek/init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/boards/at91sam9n12ek') diff --git a/arch/arm/boards/at91sam9n12ek/init.c b/arch/arm/boards/at91sam9n12ek/init.c index a206d6b731..818a598907 100644 --- a/arch/arm/boards/at91sam9n12ek/init.c +++ b/arch/arm/boards/at91sam9n12ek/init.c @@ -47,6 +47,7 @@ static struct atmel_nand_data nand_pdata = { .det_pin = -EINVAL, .rdy_pin = AT91_PIN_PD5, .enable_pin = AT91_PIN_PD4, + .has_pmecc = 1, .ecc_mode = NAND_ECC_HW, .pmecc_sector_size = 512, .pmecc_corr_cap = 2, -- cgit v1.2.3