1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-03 06:57:09 +01:00
Files
u-boot-megous/drivers
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
..
2023-07-13 11:29:40 +02:00
2023-07-20 14:10:57 -06:00
2023-05-21 16:54:41 +02:00
2023-02-10 07:41:39 -05:00
2021-10-05 08:50:15 -04:00
2023-05-02 14:23:58 -04:00
2023-07-21 09:00:39 +02:00
2022-01-13 07:57:49 -05:00
2023-06-12 14:55:33 -04:00
2023-03-02 17:45:58 -05:00
2023-07-13 11:29:40 +02:00
2023-01-20 12:27:24 -05:00
2023-04-21 15:16:01 +08:00
2023-04-26 08:43:04 -04:00
2023-04-25 15:31:28 -04:00