blob: b0f2c56a8ea26c454f3d8cc71661821ec87f38de [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDbf4289c2011-12-29 14:43:24 +08001/*
2 * atmel platform data
3 *
4 * GPL v2 Only
5 */
6
Paul Gortmaker3d92e052012-04-01 16:38:40 -04007#ifndef __ATMEL_H__
8#define __ATMEL_H__
Jean-Christophe PLAGNIOL-VILLARDbf4289c2011-12-29 14:43:24 +08009
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 */
Jean-Christophe PLAGNIOL-VILLARD3dcb7ea2011-12-29 14:59:54 +080022 u8 on_flash_bbt; /* bbt on flash */
Jean-Christophe PLAGNIOL-VILLARDbf4289c2011-12-29 14:43:24 +080023 struct mtd_partition *parts;
24 unsigned int num_parts;
25};
26
Paul Gortmaker3d92e052012-04-01 16:38:40 -040027#endif /* __ATMEL_H__ */