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-21 09:00:38 +02:00
2023-06-01 12:32:03 -04:00
2023-07-17 17:08:44 +08:00
2023-06-19 17:19:44 -04:00
2022-12-05 16:06:08 -05:00
2022-12-02 08:39:00 -05:00
2023-02-10 12:50:01 -05:00
2023-05-06 17:28:18 +08:00
2023-07-24 13:21:16 +08: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
2023-05-21 16:54:41 +02:00
2021-10-05 08:50:15 -04:00
2023-07-17 15:38:11 -04:00
2023-03-22 12:51:15 -04:00
2023-05-02 14:23:58 -04:00
2023-07-25 12:44:46 -04:00
2023-07-24 19:51:05 -04:00
2023-07-21 09:00:39 +02:00
2022-06-23 12:58:19 -04:00
2023-06-09 13:52:40 -04:00
2023-07-17 17:23:14 +08:00
2022-01-13 07:57:49 -05:00
2023-06-12 14:55:33 -04:00
2023-05-11 10:25:29 +08:00
2023-01-27 14:47:58 -05:00
2023-07-25 12:44:46 -04:00
2023-07-25 12:44:46 -04:00
2022-12-08 18:06:27 +02:00
2022-12-08 18:06:27 +02:00
2023-07-17 17:23:08 +08:00
2023-07-24 14:21:00 +03:00
2023-07-28 18:45:03 +08:00
2023-03-02 17:45:58 -05:00
2023-07-21 09:00:39 +02:00
2023-07-17 17:12:26 +08:00
2023-07-17 17:23:14 +08:00
2023-07-17 17:12:26 +08:00
2021-07-06 10:38:03 -06:00
2023-07-28 18:45:02 +08:00
2023-07-21 09:00:38 +02:00
2023-07-13 11:29:40 +02:00
2023-05-06 17:28:18 +08:00
2023-01-20 12:27:24 -05:00
2023-07-21 15:32:12 -04:00
2023-01-11 11:54:50 -05:00
2023-04-24 13:18:48 -04:00
2023-07-20 14:10:57 -06:00
2023-04-21 15:16:01 +08:00
2023-07-25 12:44:46 -04:00
2023-07-16 23:13:17 +08:00
2023-07-11 14:40:04 +02:00
2022-10-12 08:56:24 -04:00
2023-07-21 09:00:38 +02:00
2022-12-05 17:43:21 +01:00
2023-07-21 09:00:38 +02:00
2021-10-31 08:46:44 -04:00
2023-03-30 15:09:59 -04:00
2023-07-07 16:47:15 -04:00
2023-04-28 11:30:17 -06:00
2023-05-21 16:54:32 +02:00
2023-07-12 13:21:40 +08:00
2023-02-28 09:44:25 +02:00
2023-07-14 15:21:08 -04:00
2023-07-27 10:35:36 -04:00
2023-07-28 18:45:02 +08:00
2023-04-26 08:43:04 -04:00
2022-10-29 07:36:33 -06:00
2021-07-06 10:38:03 -06:00
2023-07-25 23:21:42 +02:00
2023-04-25 15:31:28 -04:00
2023-07-17 17:08:44 +08:00
2023-07-24 19:51:05 -04:00