From 971207799b47d396e6fa6319bd5b5a04aff851f7 Mon Sep 17 00:00:00 2001 From: Markus Hoffrogge Date: Thu, 10 Nov 2022 13:23:46 +0100 Subject: [PATCH] Fix U-Boot SUNXI nand SPL (#4402) This fix is provided by mainline U-Boot since v2022.10. For details refer to: https://github.com/u-boot/u-boot/commit/5fd30ed78539e11c2c155001a88f483441a96ebd fixes #4401 --- patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch diff --git a/patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch b/patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch new file mode 100644 index 0000000000..90251a581b --- /dev/null +++ b/patch/u-boot/u-boot-sunxi/fix-sunxi-nand-spl.patch @@ -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);