]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/mach/flash.h
[PATCH] ARM: OMAP: NAND flash driver model
[linux-2.6-omap-h63xx.git] / include / asm-arm / mach / flash.h
index 05b029ef6371c6203b1471897490bebce8920815..664b708d2576689a80a6bb5199cb247cebfb6ffd 100644 (file)
@@ -36,4 +36,18 @@ struct flash_platform_data {
        unsigned int    nr_parts;
 };
 
+/**
+ * struct nand_platform_data - platform data describing NAND flash banks
+ * @dev_ready: tests if the NAND flash is ready (READY signal is high)
+ * @options:   bitmask for nand_chip.options
+ * @parts:     optional array of mtd_partitions for static partitioning
+ * @nr_parts:  number of mtd_partitions for static partitoning
+ */
+struct nand_platform_data {
+       int             (*dev_ready)(struct nand_platform_data *data);
+       unsigned int    options;
+       struct mtd_partition *parts;
+       unsigned int    nr_parts;
+};
+
 #endif