Skip to content

Commit 89bdcfa

Browse files
dimfishr981213
authored andcommitted
uboot-mediatek: force update_cache_variants to use reset for Foresee NAND
Force update_cache_variantsvariants to use reset for Foresee NAND with bad blocks. Tested on Xiaomi AX3000T + F35SQA001G with bad blocks and without bad blocks Signed-off-by: Dim Fish <[email protected]> Link: openwrt#17963 Signed-off-by: Chuanhong Guo <[email protected]>
1 parent ead5c27 commit 89bdcfa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Force update_cache_variants to use reset for Foresee NAND with bad blocks
2+
3+
Tested on Xiaomi AX3000T + F35SQA001G with bad blocks and without bad blocks
4+
5+
Signed-off-by: Dim Fish <[email protected]>
6+
7+
--- a/drivers/mtd/nand/spi/foresee.c
8+
+++ b/drivers/mtd/nand/spi/foresee.c
9+
@@ -22,8 +22,8 @@ static SPINAND_OP_VARIANTS(write_cache_v
10+
SPINAND_PROG_LOAD(true, 0, NULL, 0));
11+
12+
static SPINAND_OP_VARIANTS(update_cache_variants,
13+
- SPINAND_PROG_LOAD_X4(false, 0, NULL, 0),
14+
- SPINAND_PROG_LOAD(false, 0, NULL, 0));
15+
+ SPINAND_PROG_LOAD_X4(true, 0, NULL, 0),
16+
+ SPINAND_PROG_LOAD(true, 0, NULL, 0));
17+
18+
static int f35sqa002g_ooblayout_ecc(struct mtd_info *mtd, int section,
19+
struct mtd_oob_region *region)

0 commit comments

Comments
 (0)