Qspi_Ip_Features.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : FTFC_FLS_IP IPV_QSPI
  5. * Dependencies : none
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. #if !defined(QSPI_IP_FEATURES_H)
  25. #define QSPI_IP_FEATURES_H
  26. /**
  27. * @file Qspi_Ip_Features.h
  28. *
  29. * @addtogroup FLS
  30. * @{
  31. */
  32. /* implements Qspi_Ip_Features.h_Artifact */
  33. #ifdef __cplusplus
  34. extern "C"{
  35. #endif
  36. /*==================================================================================================
  37. * INCLUDE FILES
  38. * 1) system and project includes
  39. * 2) needed interfaces from external units
  40. * 3) internal and external interfaces from this unit
  41. ==================================================================================================*/
  42. /*==================================================================================================
  43. * SOURCE FILE VERSION INFORMATION
  44. ==================================================================================================*/
  45. #define QSPI_IP_FEATURES_VENDOR_ID_CFG 43
  46. #define QSPI_IP_FEATURES_AR_RELEASE_MAJOR_VERSION_CFG 4
  47. #define QSPI_IP_FEATURES_AR_RELEASE_MINOR_VERSION_CFG 4
  48. #define QSPI_IP_FEATURES_AR_RELEASE_REVISION_VERSION_CFG 0
  49. #define QSPI_IP_FEATURES_SW_MAJOR_VERSION_CFG 1
  50. #define QSPI_IP_FEATURES_SW_MINOR_VERSION_CFG 0
  51. #define QSPI_IP_FEATURES_SW_PATCH_VERSION_CFG 0
  52. /*==================================================================================================
  53. * DEFINES AND MACROS
  54. ==================================================================================================*/
  55. /* QuadSPI module features */
  56. /*! @brief First address of the serial flash device on the AHB bus. */
  57. #define FEATURE_QSPI_AMBA_BASE 0x68000000U
  58. /*! @brief Size of AHB buffer. */
  59. #define FEATURE_QSPI_AHB_BUF_SIZE 1024U
  60. /*! @brief Size of Tx FIFO. */
  61. #define FEATURE_QSPI_TX_BUF_SIZE 128U
  62. /*! @brief Size of Rx FIFO. */
  63. #define FEATURE_QSPI_RX_BUF_SIZE 128U
  64. /*! @brief Number of LUT registers that make up a LUT sequence */
  65. #define FEATURE_QSPI_LUT_SEQUENCE_SIZE 4U
  66. /*! @brief Minimum delay in CPU cycles between Tx FIFO reset and Tx FIFO push */
  67. #define FEATURE_QSPI_TX_RESET_DELAY (0U)
  68. /* Minimum entries of 4 bytes fill needed to allow Tx operation to start */
  69. #define FEATURE_QSPI_TX_MIN_BUF_FILL 4U
  70. /*! @brief Supports Double Data Rate operation */
  71. #define FEATURE_QSPI_DDR 1
  72. /*! @brief QSPI side B is available */
  73. #define FEATURE_QSPI_HAS_SIDE_B 1
  74. /*! @brief Configurable Idle Signal Drive */
  75. #define FEATURE_QSPI_CONFIGURABLE_ISD 1
  76. /*! @brief Supports addr. config options (column address, word addressable) */
  77. #define FEATURE_QSPI_ADDR_CFG 1
  78. /*! @brief Supports byte swap */
  79. #define FEATURE_QSPI_BYTES_SWAP_ADDR 0
  80. /*! @brief Supports center-aligned read strobe */
  81. #define FEATURE_QSPI_CENTER_ALIGNED_READ_STROBE 0
  82. /*! @brief Supports differential clock */
  83. #define FEATURE_QSPI_DIFFERENTIAL_CLOCK 0
  84. /*! @brief Supports internal DQS sampling mode */
  85. #define FEATURE_QSPI_INTERNAL_DQS 1
  86. /*! @brief Supports loopback sampling mode */
  87. #define FEATURE_QSPI_LOOPBACK 1
  88. /*! @brief Supports DQS loopback sampling mode */
  89. #define FEATURE_QSPI_LOOPBACK_DQS 1
  90. /*! @brief Supports external DQS sampling mode */
  91. #define FEATURE_QSPI_EXTERNAL_DQS 1
  92. /*! @brief Supports DQS_FA_SEL/DQS_FB_SEL field in MCR register for DQS selection */
  93. #define FEATURE_QSPI_SELECT_DQS 0
  94. /*! @brief Supports Dll feature */
  95. #define FEATURE_QSPI_HAS_DLL 0
  96. /*! @brief Supports full DLL features (as opposed to bypass mode only) */
  97. #define FEATURE_QSPI_EXTERNAL_DLL_FULL 0
  98. /*! @brief Supports DLL reference counter and DLL resolution*/
  99. #define FEATURE_QSPI_DLL_LOOPCONTROL 0
  100. /*! @brief AHB base pointers initializer for all QSPI units */
  101. #define QuadSPI_AHB_PTRS { FEATURE_QSPI_AMBA_BASE }
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105. /** @} */
  106. #endif /* QSPI_IP_FEATURES_H */