summaryrefslogtreecommitdiffstats
path: root/bsps/shared/dev/spi/xqspipsu-flash-helper.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps/qspipsu: Calculate correct parallel mode sizeKinsey Moore2024-02-191-1/+2
| | | | | | Stacked mode doubles the number of sectors and device size while parallel mode doubles the sector size and the device size. Make sure that this is accounted for in the device size accessor.
* bsps/xqspipsu: Add SFDP config space read abilityKinsey Moore2023-09-231-0/+48
| | | | | This adds a function to allow reading of the SFDP configuration space that describes attributes of NOR flash chips.
* bsps/xqspipsu: Break out RDIDKinsey Moore2023-09-231-16/+29
| | | | | Expose a function to read the NOR flash chip ID information beyond the minimum 3 bytes for the lookup table.
* bsps/xqspipsu: Handle SMP systems properlyKinsey Moore2023-06-221-0/+3
| | | | | | | The NOR driver was not written with SMP systems and caching in mind. This makes the IsBusy flag volatile for updates across cores and introduces cache flushing and invalidation where necessary for data manipulated by the DMA engine in the QSPI peripheral.
* bsps/xqspipsu: Use device information from the FCTKinsey Moore2023-06-081-0/+16
| | | | | | Instead of statically defining the device parameters, use the device information available via the NOR device layer's Flash Configuration Table.
* bsps/xqspipsu: Calculate erase sectors correctlyKinsey Moore2023-06-081-16/+3
| | | | | | | When given the exact bounds of a sector, the current algorithm calculates that 3 sectors need to be erased. This corrects the calculation such that only 1 sector needs to be erased for erasures that exactly match sector boundaries.
* bsps/xqspipsu: Ensure NOR writes alignKinsey Moore2023-06-081-1/+46
| | | | | | | This change causes NOR writes to be broken according to page boundaries. Writes across page boundaries cause the writes beyond the boundary to fail silently. This also introduces a new function that will explicitly write pages.
* bsps/xqspipsu: Add support for reading ECCKinsey Moore2023-03-221-0/+223
| | | | | This adds a helper function to read the ECC status for an ECC unit in SPI-attached NOR memory.
* bsps: Add Xilinx GQSPI flash helperAlex White2023-01-271-0/+2005
This adds helper functions for working with NOR flash connected to the Xilinx GQSPI controller. The helper functions are based on Xilinx's QSPIPSU flash interrupt example.