summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/include/mach/board.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD2011-12-29 07:43:24 +0100
committerJean-Christophe PLAGNIOL-VILLARD2012-03-15 16:26:32 +0100
commitbf4289cba02b8cf770ecd7959ca70839f0dd9d3c (patch)
tree12c94db33209130c12ce7c31cb2d7f36b303b651 /arch/arm/mach-at91/include/mach/board.h
parentARM: at91: at91sam9x5cm/dt: add leds support (diff)
downloadkernel-qcow2-linux-bf4289cba02b8cf770ecd7959ca70839f0dd9d3c.tar.gz
kernel-qcow2-linux-bf4289cba02b8cf770ecd7959ca70839f0dd9d3c.tar.xz
kernel-qcow2-linux-bf4289cba02b8cf770ecd7959ca70839f0dd9d3c.zip
ATMEL: fix nand ecc support
So we can now choose for the board the ecc mode (ecc soft, soft bch, no ecc and hardware). Set ecc mode in the boards to soft as currently in the driver. Move platform data to a common header include/linux/platform_data/atmel_nand.h Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no> Acked-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'arch/arm/mach-at91/include/mach/board.h')
-rw-r--r--arch/arm/mach-at91/include/mach/board.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
index dc8d6d4f17cf..544a5d5ce416 100644
--- a/arch/arm/mach-at91/include/mach/board.h
+++ b/arch/arm/mach-at91/include/mach/board.h
@@ -41,6 +41,7 @@
#include <sound/atmel-ac97c.h>
#include <linux/serial.h>
#include <linux/platform_data/macb.h>
+#include <linux/platform_data/atmel.h>
/* USB Device */
struct at91_udc_data {
@@ -98,20 +99,6 @@ extern void __init at91_add_device_usbh(struct at91_usbh_data *data);
extern void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data);
extern void __init at91_add_device_usbh_ehci(struct at91_usbh_data *data);
- /* NAND / SmartMedia */
-struct atmel_nand_data {
- int enable_pin; /* chip enable */
- int det_pin; /* card detect */
- int rdy_pin; /* ready/busy */
- u8 rdy_pin_active_low; /* rdy_pin value is inverted */
- u8 ale; /* address line number connected to ALE */
- u8 cle; /* address line number connected to CLE */
- u8 bus_width_16; /* buswidth is 16 bit */
- u8 correction_cap; /* PMECC correction capability */
- u16 sector_size; /* Sector size for PMECC */
- struct mtd_partition *parts;
- unsigned int num_parts;
-};
extern void __init at91_add_device_nand(struct atmel_nand_data *data);
/* I2C*/