From e3e12f52b214121840b44c91de5b3e5af5d3eb84 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 06 Nov 2023 03:04:41 +0000
Subject: [PATCH] rk3568 rt init

---
 kernel/drivers/soc/rockchip/flash_vendor_storage.c |   25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diff --git a/kernel/drivers/soc/rockchip/flash_vendor_storage.c b/kernel/drivers/soc/rockchip/flash_vendor_storage.c
index 831f7b0..51b83b8 100644
--- a/kernel/drivers/soc/rockchip/flash_vendor_storage.c
+++ b/kernel/drivers/soc/rockchip/flash_vendor_storage.c
@@ -23,34 +23,13 @@
 #define DLOG(x...)
 #endif
 
-struct vendor_item {
-	u16  id;
-	u16  offset;
-	u16  size;
-	u16  flag;
-};
-
 #define FLASH_VENDOR_PART_START		8
-#define FLASH_VENDOR_PART_SIZE		8
 #define FLASH_VENDOR_PART_NUM		4
-#define FLASH_VENDOR_TAG		0x524B5644
-
-struct tag_vendor_info {
-	u32	tag;
-	u32	version;
-	u16	next_index;
-	u16	item_num;
-	u16	free_offset;
-	u16	free_size;
-	struct vendor_item item[62]; /* 62 * 8 */
-	u8	data[FLASH_VENDOR_PART_SIZE * 512 - 512 - 8];
-	u32	hash;
-	u32	version2;
-};
+#define FLASH_VENDOR_TAG		VENDOR_HEAD_TAG
 
 static int (*_flash_read)(u32 sec, u32 n_sec, void *p_data);
 static int (*_flash_write)(u32 sec, u32 n_sec, void *p_data);
-static struct tag_vendor_info *g_vendor;
+static struct flash_vendor_info *g_vendor;
 
 int flash_vendor_dev_ops_register(int (*read)(u32 sec,
 					      u32 n_sec,

--
Gitblit v1.6.2