History

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

Jean-Christophe PLAGNIOL-VILLARD committed 14 years ago

Commit bf4289c1 parent f75622f25 files · +55 −45Browse files

Showing the changes to include/linux/platform_data (1 of 25 files). Show all

Unified · Split

include/linux/platform_data/atmel.h+26−0
@@ -0,0 +1,26 @@
1/*
2 * atmel platform data
3 *
4 * GPL v2 Only
5 */
6
7#ifndef __ATMEL_NAND_H__
8#define __ATMEL_NAND_H__
9
10#include <linux/mtd/nand.h>
11
12 /* NAND / SmartMedia */
13struct atmel_nand_data {
14 int enable_pin; /* chip enable */
15 int det_pin; /* card detect */
16 int rdy_pin; /* ready/busy */
17 u8 rdy_pin_active_low; /* rdy_pin value is inverted */
18 u8 ale; /* address line number connected to ALE */
19 u8 cle; /* address line number connected to CLE */
20 u8 bus_width_16; /* buswidth is 16 bit */
21 u8 ecc_mode; /* ecc mode */
22 struct mtd_partition *parts;
23 unsigned int num_parts;
24};
25
26#endif /* __ATMEL_NAND_H__ */