firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-modules_nand_sun50iw1...

23 lines
665 B
Diff

diff -drupN a/modules/nand/sun50iw10p1/phy2nftl.h b/modules/nand/sun50iw10p1/phy2nftl.h
--- a/modules/nand/sun50iw10p1/phy2nftl.h 1970-01-01 03:00:00.000000000 +0300
+++ b/modules/nand/sun50iw10p1/phy2nftl.h 2022-06-12 05:28:14.000000000 +0300
@@ -0,0 +1,18 @@
+/*SPDX-Licensen-Identifier: GPL-2.0*/
+
+#ifndef __PHY2NFTL_H__
+#define __PHY2NFTL_H__
+
+#include "aw_nand_type.h"
+
+typedef struct nand_phyinfo_for_nftl {
+ __u32 die_cnt_per_chip;
+ __u32 blk_cnt_per_die;
+ __u16 page_cnt_per_blk;
+ __u8 sector_cnt_per_page;
+ __u8 nand_chip_id[8];
+} nand_phyinfo_for_nftl_t;
+
+void nftl_get_nand_phyinfo(nand_phyinfo_for_nftl_t *info);
+
+#endif /*PHY2NFTL_H*/