diff options
author | Kinsey Moore <kinsey.moore@oarcorp.com> | 2023-05-24 14:53:58 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-06-08 09:48:44 -0500 |
commit | 09fd5dd3539d11529016a31495b44a9cb82413e3 (patch) | |
tree | 5274947a7f9962d365dbb704e9eeef5ac9663a03 /bsps/include/dev | |
parent | bsps/xqspipsu: Calculate erase sectors correctly (diff) | |
download | rtems-09fd5dd3539d11529016a31495b44a9cb82413e3.tar.bz2 |
bsps/xqspipsu: Use device information from the FCT
Instead of statically defining the device parameters, use the device
information available via the NOR device layer's Flash Configuration
Table.
Diffstat (limited to 'bsps/include/dev')
-rw-r--r-- | bsps/include/dev/spi/xqspipsu-flash-helper.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bsps/include/dev/spi/xqspipsu-flash-helper.h b/bsps/include/dev/spi/xqspipsu-flash-helper.h index 1e16acaf06..5e4233e64e 100644 --- a/bsps/include/dev/spi/xqspipsu-flash-helper.h +++ b/bsps/include/dev/spi/xqspipsu-flash-helper.h @@ -131,3 +131,27 @@ int QspiPsu_NOR_Read_Ecc( u32 Address, u8 *ReadBfrPtr ); + +/*****************************************************************************/ +/** + * + * This function returns the size of attached flash parts. + * + * @param QspiPsuPtr is a pointer to the QSPIPSU driver component to use. + * + * @return The size of attached flash in bytes. + * + ******************************************************************************/ +u32 QspiPsu_NOR_Get_Device_Size(XQspiPsu *QspiPsuPtr); + +/*****************************************************************************/ +/** + * + * This function returns the sector size of attached flash parts. + * + * @param QspiPsuPtr is a pointer to the QSPIPSU driver component to use. + * + * @return The sector size of attached flash in bytes. + * + ******************************************************************************/ +u32 QspiPsu_NOR_Get_Sector_Size(XQspiPsu *QspiPsuPtr); |