]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
authorWilliam Zhang <william.zhang@broadcom.com>
Mon, 16 Sep 2024 09:58:43 +0000 (11:58 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 5 Oct 2024 17:19:24 +0000 (11:19 -0600)
commit16101726e85bf111eae6c364b710051d94d5e24f
treec8ff89e2fb49a29692b5a63fc876eb7ca4d346ad
parent9cfe0cab3bf135a505e1e163ca442a4e4064d58e
mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller

Backport from the Linux kernel
commit 2ec2839a9062db8a592525a3fdabd42dcd9a3a9b
"mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller"

v7.2 controller has different ECC level field size and shift in the acc
control register than its predecessor and successor controller. It needs
to be set specifically.

Signed-off-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230706182909.79151-2-william.zhang@broadcom.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c