Browse Source

efDataStatistics preliminaryDataProcessing.c 韩正义 commit at 2020-11-24

韩正义 4 years ago
parent
commit
7c9c911a11

+ 22 - 0
efDataStatistics/monitoringDataProcessing/preliminaryDataProcessing.c

@@ -49,3 +49,25 @@
  */
  */
 
 
 static struct mtd_partition net2big_partitions[] = {
 static struct mtd_partition net2big_partitions[] = {
+	{
+		.name		= "Full512kb",
+		.size		= MTDPART_SIZ_FULL,
+		.offset		= 0x00000000,
+		.mask_flags	= MTD_WRITEABLE,
+	},
+};
+
+static struct physmap_flash_data net2big_nor_flash_data = {
+	.width		= 1,
+	.parts		= net2big_partitions,
+	.nr_parts	= ARRAY_SIZE(net2big_partitions),
+};
+
+static struct resource net2big_nor_flash_resource = {
+	.flags			= IORESOURCE_MEM,
+	.start			= NET2BIG_NOR_BOOT_BASE,
+	.end			= NET2BIG_NOR_BOOT_BASE
+					+ NET2BIG_NOR_BOOT_SIZE - 1,
+};
+
+static struct platform_device net2big_nor_flash = {