boot: airoha: snfi: remove dirty hack required for both u-boot & linux
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Fri, 3 Oct 2025 23:54:24 +0000 (02:54 +0300)
committerRobert Marko <robimarko@gmail.com>
Thu, 9 Oct 2025 14:37:25 +0000 (16:37 +0200)
commite06725222e805bbccf72ef07084e528e1239369a
tree6848bd9dd29a3133f94094ed2d2947466972eb78
parente67ba973d2b43507ed900ec8fdf8187cadbf4918
boot: airoha: snfi: remove dirty hack required for both u-boot & linux

This patch removes dirty hack used to:
 * operate with flash
 * pass flash page settings to linux driver via SNFI registers

It has been proven that spinand flash page size is actually unnecessary.
We can get all required data from dirmap requests. Thus this patch
series drops the hack and do things properly.

After this fix (and corresponding linux fix) the hack is not needed
anymore.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Link: https://github.com/openwrt/openwrt/pull/20295
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/boot/uboot-airoha/patches/207-spi-airoha-avoid-setting-of-page-oob-sizes-in-REG_SP.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/208-spi-airoha-reduce-the-number-of-modification-of-REG_.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/209-spi-airoha-set-custom-sector-size-equal-to-flash-pag.patch [new file with mode: 0644]
package/boot/uboot-airoha/patches/210-spi-airoha-avoid-usage-of-flash-specific-parameters.patch [new file with mode: 0644]