]> git.ipfire.org Git - thirdparty/u-boot.git/commit
mtd: rawnand: sunxi_spl: increase max_oobsize for 2KiB pages
authorRichard Genoud <richard.genoud@bootlin.com>
Fri, 23 Jan 2026 11:44:53 +0000 (12:44 +0100)
committerMichael Trimarchi <michael@amarulasolutions.com>
Tue, 3 Feb 2026 20:45:06 +0000 (21:45 +0100)
commit442eb06c92eba87b63dcd7222088a18e951e024d
tree9433d572537a530b8f6f023baa356c56e717397f
parent50b459973c3e747d9e5e4b38acb0702724fd8e68
mtd: rawnand: sunxi_spl: increase max_oobsize for 2KiB pages

Increase max_oobsize to take into account bigger OOB on 2KiB pages

Some NAND chip (e.g. Kioxia TC58NVG1S3HTA00) have a 2KiB page size +
128 bytes OOB.
In order to detect them, the max_oobsize has to be increased from 64 to
128 bytes.

Tested on Kioxia TC58NVG1S3HTA00 NAND chip on Whatsminer H616 board.

Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/raw/sunxi_nand_spl.c