Fix U-Boot SUNXI nand SPL (#4402)
This fix is provided by mainline U-Boot since v2022.10.
For details refer to:
5fd30ed785
fixes #4401
This commit is contained in:
parent
829ee2e4e0
commit
971207799b
13
patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch
Normal file
13
patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c
|
||||
index a29a76c5..6de0b0a3 100644
|
||||
--- a/drivers/mtd/nand/raw/sunxi_nand_spl.c
|
||||
+++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c
|
||||
@@ -208,7 +208,7 @@ static void nand_apply_config(const struct nfc_config *conf)
|
||||
|
||||
val = readl(SUNXI_NFC_BASE + NFC_CTL);
|
||||
val &= ~NFC_CTL_PAGE_SIZE_MASK;
|
||||
- writel(val | NFC_CTL_RAM_METHOD | NFC_CTL_PAGE_SIZE(conf->page_size),
|
||||
+ writel(val | NFC_CTL_PAGE_SIZE(conf->page_size),
|
||||
SUNXI_NFC_BASE + NFC_CTL);
|
||||
writel(conf->ecc_size, SUNXI_NFC_BASE + NFC_CNT);
|
||||
writel(conf->page_size, SUNXI_NFC_BASE + NFC_SPARE_AREA);
|
||||
Loading…
Reference in New Issue
Block a user