mtd: spinand: foresee: Fix the way to program load cache

There are many restrictions on the use of the foresee devices Program
Load Random Data (84H), for example it's not allow after a block erase.

Change-Id: I345757016aa9b4c70b6cd5cca54f49166bb9dd99
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2022-12-26 14:51:14 +08:00
committed by Tao Huang
parent 97c00cc207
commit f4a2303e6f

View File

@@ -26,7 +26,7 @@ static SPINAND_OP_VARIANTS(write_cache_variants,
static SPINAND_OP_VARIANTS(update_cache_variants,
SPINAND_PROG_LOAD_X4(false, 0, NULL, 0),
SPINAND_PROG_LOAD(false, 0, NULL, 0));
SPINAND_PROG_LOAD(true, 0, NULL, 0));
static int fsxxndxxg_ooblayout_ecc(struct mtd_info *mtd, int section,
struct mtd_oob_region *region)