]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Set ECC unit size to MTD writesize in Infineon SEMPER flashes
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Tue, 15 Oct 2024 04:08:36 +0000 (13:08 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 14:57:49 +0000 (08:57 -0600)
commit10e75dd0bce34134df15f2c2d9251a919f6bcdc7
tree341a9a5519e7820e3414dd68b6367c6f99903b67
parent20f1383bad59996aeb62e92e296f9ee445ff71b6
mtd: spi-nor: Set ECC unit size to MTD writesize in Infineon SEMPER flashes

The Infineon SEMPER NOR flash family uses 2-bit ECC by default with each
ECC block being 16 bytes. Under this scheme multi-pass programming to an
ECC block is not allowed. Set the writesize to make sure multi-pass
programming is not attempted on the flash.

Acked-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
drivers/mtd/spi/spi-nor-core.c