File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
drivers/s32ze/Mem_EXFLS/include Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ extern "C"{
121
121
#define QSPI_IP_ERASE_TYPES (4U)
122
122
123
123
/*! @brief Number of AHB buffers in the device */
124
- #define QSPI_IP_AHB_BUFFERS (4U)
124
+ #define QSPI_IP_AHB_BUFFERS 4
125
125
126
126
/*! Invalid index in virtual LUT, used for unsupported features */
127
127
#define QSPI_IP_LUT_INVALID (uint16)0xFFFFU
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ extern "C"{
28
28
* 3) internal and external interfaces from this unit
29
29
==================================================================================================*/
30
30
#include "Qspi_Ip_Types.h"
31
-
31
+ #include <zephyr/devicetree.h>
32
32
33
33
/*==================================================================================================
34
34
* SOURCE FILE VERSION INFORMATION
@@ -51,7 +51,7 @@ extern "C"{
51
51
==================================================================================================*/
52
52
53
53
/* Number of serial flash devices */
54
- #define QSPI_IP_MEM_INSTANCE_COUNT (1U )
54
+ #define QSPI_IP_MEM_INSTANCE_COUNT DT_NUM_INST_STATUS_OKAY(nxp_s32_qspi_hyperflash )
55
55
56
56
/* Maximum number of retries for Write Enable command */
57
57
#define QSPI_IP_MAX_RETRY (3U)
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ extern "C"{
27
27
* 2) needed interfaces from external units
28
28
* 3) internal and external interfaces from this unit
29
29
==================================================================================================*/
30
+ #include <zephyr/devicetree.h>
30
31
31
32
/*==================================================================================================
32
33
* SOURCE FILE VERSION INFORMATION
@@ -48,9 +49,9 @@ extern "C"{
48
49
==================================================================================================*/
49
50
50
51
51
- #define QSPI_IP_SFP_ENABLE_GLOBAL (STD_ON )
52
- #define QSPI_IP_SFP_ENABLE_MDAD (STD_ON )
53
- #define QSPI_IP_SFP_ENABLE_FRAD (STD_ON)
52
+ #define QSPI_IP_SFP_ENABLE_MDAD DT_HAS_COMPAT_STATUS_OKAY(nxp_s32_qspi_sfp_mdad )
53
+ #define QSPI_IP_SFP_ENABLE_FRAD DT_HAS_COMPAT_STATUS_OKAY(nxp_s32_qspi_sfp_frad )
54
+ #define QSPI_IP_SFP_ENABLE_GLOBAL UTIL_OR(QSPI_IP_SFP_ENABLE_MDAD, QSPI_IP_SFP_ENABLE_FRAD)
54
55
55
56
56
57
/* Enable Multicore support when using MemAcc*/
You can’t perform that action at this time.
0 commit comments