u-boot/drivers/mtd/nand
Johan Jonker 3d17ee4533 mtd: nand: raw: rockchip_nfc: copy hwecc PA data to oob_poi buffer
Rockchip boot blocks are written per 4 x 512 byte sectors per page.
Each page must have a page address (PA) pointer in OOB to the next page.
Pages are written in a pattern depending on the NAND chip ID.
This logic used to build a page pattern table is not fully disclosed and
is not easy to fit in the MTD framework.
The formula in rk_nfc_write_page_hwecc() function is not correct.
Make hwecc and raw behavior identical.
Generate boot block page address and pattern for hwecc in user space
and copy PA data to/from the already reserved last 4 bytes before EEC
in the chip->oob_poi data layout.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-07-28 18:45:03 +08:00
..
raw mtd: nand: raw: rockchip_nfc: copy hwecc PA data to oob_poi buffer 2023-07-28 18:45:03 +08:00
spi mtd: spinand: Fix display of unknown raw ID 2023-02-27 16:30:09 +01:00
bbt.c Fix corner case in bad block table handling. 2020-08-04 23:30:02 -04:00
core.c mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase() 2022-12-10 14:35:55 +01:00
Kconfig mtd: nand: Add core infrastructure to support SPI NANDs 2018-09-20 20:10:49 +05:30
Makefile mtd: Makefile: deep cleanup 2019-12-04 17:10:51 -05:00