[-mm patch 2/4] AVR32 MTD: Define struct flash_platform_data

Haavard Skinnemoen hskinnemoen at atmel.com
Thu Sep 14 10:31:21 EDT 2006


Define a data structure for passing board-specific information to an
MTD mapping driver. For now it specifies a default partition layout.

Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
---
 include/asm-avr32/arch-at32ap/board.h |    7 +++++++
 1 file changed, 7 insertions(+)

Index: linux-2.6.18-rc5-mm1/include/asm-avr32/arch-at32ap/board.h
===================================================================
--- linux-2.6.18-rc5-mm1.orig/include/asm-avr32/arch-at32ap/board.h	2006-09-07 15:14:20.000000000 +0200
+++ linux-2.6.18-rc5-mm1/include/asm-avr32/arch-at32ap/board.h	2006-09-07 15:19:08.000000000 +0200
@@ -6,6 +6,13 @@
 
 #include <linux/types.h>
 
+struct mtd_partition;
+
+struct flash_platform_data {
+	unsigned int nr_parts;
+	struct mtd_partition *parts;
+};
+
 /* Add basic devices: system manager, interrupt controller, portmuxes, etc. */
 void at32_add_system_devices(void);
 




More information about the linux-mtd mailing list