summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-at91sam9/atmel_nand.h
blob: 0c0fbd0ee0ac9e068bd2bbcecb9f10d54b2344ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __ASM_ARCH_NAND_H
#define __ASM_ARCH_NAND_H

#include <linux/mtd/mtd.h>

void atmel_nand_load_image(void *dest, int size, int pagesize, int blocksize);

 /* NAND / SmartMedia */
struct atmel_nand_data {
	void __iomem	*ecc_base;
	u8		enable_pin;	/* chip enable */
	u8		det_pin;	/* card detect */
	u8		rdy_pin;	/* ready/busy */
	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		ecc_mode;	/* NAND_ECC_* */
};

#endif /* __ASM_ARCH_NAND_H */