Re: [PATCH v2 3/3] spi: cadence_qspi: Use APB write protection
Marek Vasut via U-Boot <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
On 8/14/26 8:28 PM, Ralph Siemsen wrote: > Add an option to make use of hardware write protection in the QSPI > controller. This helps prevent flash corruption due to stray writes. > No stray writes have been observed, this is defensive code. > > When enabled, the controller is configured to block writes to flash. Due > to known errata [1] the full 32-bit address range is protected, even > though the flash occupies only a portion. > > The protection gets temporarily lifted while intentionally writing > to flash, for example using "sf write" command. > > [1] https://www.renesas.com/en/document/tcu/qspi-contoller-issue > > Signed-off-by: Ralph Siemsen <[email protected]> Reviewed-by: Marek Vasut <[email protected]>