summaryrefslogtreecommitdiff
path: root/drivers/ddr/microchip/ddr2.c
diff options
context:
space:
mode:
authorJohan Jonker <jbx6244@gmail.com>2023-06-22 15:59:24 +0200
committerKever Yang <kever.yang@rock-chips.com>2023-07-28 18:45:03 +0800
commit3d17ee453348f49a975ea9a0c399258c01a160ed (patch)
tree0d65830d71f3e1de96a08d4e0fe55a90d2c32696 /drivers/ddr/microchip/ddr2.c
parent9010c43b038f81d5282e51c723a673a25a0fb6b3 (diff)
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>
Diffstat (limited to 'drivers/ddr/microchip/ddr2.c')
0 files changed, 0 insertions, 0 deletions