| 
					
				 | 
			
			
				@@ -242,3 +242,57 @@ static struct mtd_partition nor_flash_partitions[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		.size		= 512 * 1024, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		.mask_flags	= MTD_WRITEABLE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "bootenv", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 512 * 1024, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.mask_flags	= MTD_WRITEABLE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "kernel_ro", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 8 * 1024 * 1024, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.mask_flags	= MTD_WRITEABLE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "kernel", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= 8 * 1024 * 1024, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.name		= "data", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.offset		= MTDPART_OFS_APPEND, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.size		= MTDPART_SIZ_FULL, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct physmap_flash_data nor_flash_data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.width		= 2, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.parts		= nor_flash_partitions, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.nr_parts	= ARRAY_SIZE(nor_flash_partitions), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct resource nor_flash_resources[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	[0]	= { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start	= 0x20000000, /* CS0 shadow instead of regular CS0 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end	= 0x28000000 - 1, /* needed by USB MASK ROM boot */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags	= IORESOURCE_MEM, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct platform_device nor_flash_device = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.name		= "physmap-flash", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.dev		= { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.platform_data	= &nor_flash_data, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.num_resources	= ARRAY_SIZE(nor_flash_resources), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	.resource	= nor_flash_resources, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/* SMSC */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+static struct resource smc911x_resources[] = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.start	= 0x14000000, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.end	= 0x16000000 - 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		.flags	= IORESOURCE_MEM, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	}, { 
			 |