瀏覽代碼

waterDataStatisticsCrossAssociation memoryDefinitionWaterSprayFireAssociated.c 张婷 commit at 2021-02-19

张婷 4 年之前
父節點
當前提交
21c357d44f

+ 31 - 0
waterDataStatisticsCrossAssociation/dataSharedMemory/memoryDefinitionWaterSprayFireAssociated.c

@@ -154,3 +154,34 @@ static struct mtd_partition trizeps4_partitions[] = {
 		.mask_flags =	MTD_WRITEABLE  /* force read-only */
 	}, {
 		.name =		"Backup",
+		.offset =	0x00040000,
+		.size =		0x00040000,
+	}, {
+		.name =		"Image",
+		.offset =	0x00080000,
+		.size =		0x01080000,
+	}, {
+		.name =		"IPSM",
+		.offset =	0x01100000,
+		.size =		0x00e00000,
+	}, {
+		.name =		"Registry",
+		.offset =	0x01f00000,
+		.size =		MTDPART_SIZ_FULL,
+	}
+};
+
+static struct physmap_flash_data trizeps4_flash_data[] = {
+	{
+		.width		= 4,			/* bankwidth in bytes */
+		.parts		= trizeps4_partitions,
+		.nr_parts	= ARRAY_SIZE(trizeps4_partitions)
+	}
+};
+
+static struct resource flash_resource = {
+	.start	= PXA_CS0_PHYS,
+	.end	= PXA_CS0_PHYS + SZ_32M - 1,
+	.flags	= IORESOURCE_MEM,
+};
+