Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6
[sfrench/cifs-2.6.git] / include / asm-avr32 / arch-at32ap / board.h
index a3783861cdd269ab80101e1a2acdf162f8fdecef..893aa6d0cd11ccd1aefec65ee1405c0af8b6efc2 100644 (file)
@@ -97,4 +97,17 @@ struct platform_device *
 at32_add_device_cf(unsigned int id, unsigned int extint,
                struct cf_platform_data *data);
 
+/* NAND / SmartMedia */
+struct atmel_nand_data {
+       int     enable_pin;     /* chip enable */
+       int     det_pin;        /* card detect */
+       int     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 */
+       struct mtd_partition *(*partition_info)(int size, int *num_partitions);
+};
+struct platform_device *
+at32_add_device_nand(unsigned int id, struct atmel_nand_data *data);
+
 #endif /* __ASM_ARCH_BOARD_H */