3131#define __SL_SI91X_PSRAM_HANDLE_H_
3232
3333#include "sl_si91x_psram.h"
34- #include "sl_si91x_psram_pin_config.h"
35- #ifdef SLI_SI91X_MCU_PSRAM_APS1604M_SQR
36- #include "sl_si91x_psram_aps1604m_sqr_config.h"
37- #elif defined(SLI_SI91X_MCU_PSRAM_APS6404L_SQH )
38- #include "sl_si91x_psram_aps6404l_sqh_config.h"
39- #else
40- #include "sl_si91x_psram_aps6404l_sqrh_config.h"
41- #endif
42-
43- /**
44- * @file sl_si91x_psram_handle.h
45- * @brief Handle for PSRAM operations and configuration.
46- */
4734
48- /**
49- * @brief Handle for PSRAM Operations
50- */
5135extern struct sl_psram_info_type_t PSRAM_Device ;
5236
53- /**
54- * @addtogroup PSRAM_GPIO_PIN_SET PSRAM GPIO Pin Sets
55- * @ingroup PSRAM
56- * @{
57- */
58- #define PSRAM_GPIO_PIN_SET_52_TO_57 1 /**< GPIO Pin Set 52 to 57 */
59- #define PSRAM_GPIO_PIN_SET_0_TO_5 2 /**< GPIO Pin Set 0 to 5 */
60- #define PSRAM_GPIO_PIN_SET_46_TO_51_CS_0 3 /**< GPIO Pin Set 46 to 51 with Chip Select 0 */
61- #define PSRAM_GPIO_PIN_SET_46_TO_51_CS_1 4 /**< GPIO Pin Set 46 to 51 with Chip Select 1 */
62- #define PSRAM_GPIO_PIN_SET_46_TO_57_CS_0 5 /**< GPIO Pin Set 46 to 57 with Chip Select 0 */
63- #define PSRAM_GPIO_PIN_SET_46_TO_57_CS_1 6 /**< GPIO Pin Set 46 to 57 with Chip Select 1 */
64- /// @} end group PSRAM_GPIO_PIN_SET
65-
66- /**
67- * @addtogroup PSRAM_PIN_CONFIG PSRAM Pin Configuration
68- * @ingroup PSRAM
69- * @{
70- */
71- #if (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_0_TO_5 )
72-
73- #define M4SS_PSRAM_CLK_PORT (0) /**< Clock Port for GPIO Pin Set 0 to 5 */
74- #define M4SS_PSRAM_CLK_PIN (0) /**< Clock Pin for GPIO Pin Set 0 to 5 */
75- #define M4SS_PSRAM_CLK_MUX (2) /**< Clock Mux for GPIO Pin Set 0 to 5 */
76- #define M4SS_PSRAM_CLK_PAD (0) /**< Clock Pad for GPIO Pin Set 0 to 5 */
77-
78- #define M4SS_PSRAM_CSN_PORT (0) /**< Chip Select Port for GPIO Pin Set 0 to 5 */
79- #define M4SS_PSRAM_CSN_PIN (1) /**< Chip Select Pin for GPIO Pin Set 0 to 5 */
80- #define M4SS_PSRAM_CSN_MUX (2) /**< Chip Select Mux for GPIO Pin Set 0 to 5 */
81- #define M4SS_PSRAM_CSN_PAD (0) /**< Chip Select Pad for GPIO Pin Set 0 to 5 */
82-
83- #define M4SS_PSRAM_D0_PORT (0) /**< Data 0 Port for GPIO Pin Set 0 to 5 */
84- #define M4SS_PSRAM_D0_PIN (2) /**< Data 0 Pin for GPIO Pin Set 0 to 5 */
85- #define M4SS_PSRAM_D0_MUX (2) /**< Data 0 Mux for GPIO Pin Set 0 to 5 */
86- #define M4SS_PSRAM_D0_PAD (0) /**< Data 0 Pad for GPIO Pin Set 0 to 5 */
87-
88- #define M4SS_PSRAM_D1_PORT (0) /**< Data 1 Port for GPIO Pin Set 0 to 5 */
89- #define M4SS_PSRAM_D1_PIN (3) /**< Data 1 Pin for GPIO Pin Set 0 to 5 */
90- #define M4SS_PSRAM_D1_MUX (2) /**< Data 1 Mux for GPIO Pin Set 0 to 5 */
91- #define M4SS_PSRAM_D1_PAD (0) /**< Data 1 Pad for GPIO Pin Set 0 to 5 */
92-
93- #define M4SS_PSRAM_D2_PORT (0) /**< Data 2 Port for GPIO Pin Set 0 to 5 */
94- #define M4SS_PSRAM_D2_PIN (4) /**< Data 2 Pin for GPIO Pin Set 0 to 5 */
95- #define M4SS_PSRAM_D2_MUX (2) /**< Data 2 Mux for GPIO Pin Set 0 to 5 */
96- #define M4SS_PSRAM_D2_PAD (0) /**< Data 2 Pad for GPIO Pin Set 0 to 5 */
97-
98- #define M4SS_PSRAM_D3_PORT (0) /**< Data 3 Port for GPIO Pin Set 0 to 5 */
99- #define M4SS_PSRAM_D3_PIN (5) /**< Data 3 Pin for GPIO Pin Set 0 to 5 */
100- #define M4SS_PSRAM_D3_MUX (2) /**< Data 3 Mux for GPIO Pin Set 0 to 5 */
101- #define M4SS_PSRAM_D3_PAD (0) /**< Data 3 Pad for GPIO Pin Set 0 to 5 */
102-
103- #define NUM_OF_PSRAM_PINS (6) /**< Number of PSRAM Pins for GPIO Pin Set 0 to 5 */
104-
105- #elif (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_51_CS_0 ) \
106- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_51_CS_1 ) \
107- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_57_CS_0 ) \
108- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_57_CS_1 )
109-
110- #define M4SS_PSRAM_CLK_PORT (2) /**< Clock Port for GPIO Pin Set 46 to 57 */
111- #define M4SS_PSRAM_CLK_PIN (14) /**< Clock Pin for GPIO Pin Set 46 to 57 */
112- #define M4SS_PSRAM_CLK_MUX (11) /**< Clock Mux for GPIO Pin Set 46 to 57 */
113- #define M4SS_PSRAM_CLK_PAD (10) /**< Clock Pad for GPIO Pin Set 46 to 57 */
114-
115- #if (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_51_CS_0 ) \
116- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_57_CS_0 )
117- #define M4SS_PSRAM_CSN_PORT (3) /**< Chip Select Port for GPIO Pin Set 46 to 51 with CS 0 */
118- #define M4SS_PSRAM_CSN_PIN (01) /**< Chip Select Pin for GPIO Pin Set 46 to 51 with CS 0 */
119- #define M4SS_PSRAM_CSN_MUX (11) /**< Chip Select Mux for GPIO Pin Set 46 to 51 with CS 0 */
120- #define M4SS_PSRAM_CSN_PAD (13) /**< Chip Select Pad for GPIO Pin Set 46 to 51 with CS 0 */
121- #elif (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_51_CS_1 ) \
122- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_57_CS_1 )
123- #define M4SS_PSRAM_CSN_PORT (3) /**< Chip Select Port for GPIO Pin Set 46 to 51 with CS 1 */
124- #define M4SS_PSRAM_CSN_PIN (05) /**< Chip Select Pin for GPIO Pin Set 46 to 51 with CS 1 */
125- #define M4SS_PSRAM_CSN_MUX (11) /**< Chip Select Mux for GPIO Pin Set 46 to 51 with CS 1 */
126- #define M4SS_PSRAM_CSN_PAD (17) /**< Chip Select Pad for GPIO Pin Set 46 to 51 with CS 1 */
127- #endif
128-
129- #define M4SS_PSRAM_D0_PORT (2) /**< Data 0 Port for GPIO Pin Set 46 to 57 */
130- #define M4SS_PSRAM_D0_PIN (15) /**< Data 0 Pin for GPIO Pin Set 46 to 57 */
131- #define M4SS_PSRAM_D0_MUX (11) /**< Data 0 Mux for GPIO Pin Set 46 to 57 */
132- #define M4SS_PSRAM_D0_PAD (11) /**< Data 0 Pad for GPIO Pin Set 46 to 57 */
133-
134- #define M4SS_PSRAM_D1_PORT (3) /**< Data 1 Port for GPIO Pin Set 46 to 57 */
135- #define M4SS_PSRAM_D1_PIN (0) /**< Data 1 Pin for GPIO Pin Set 46 to 57 */
136- #define M4SS_PSRAM_D1_MUX (11) /**< Data 1 Mux for GPIO Pin Set 46 to 57 */
137- #define M4SS_PSRAM_D1_PAD (12) /**< Data 1 Pad for GPIO Pin Set 46 to 57 */
138-
139- #define M4SS_PSRAM_D2_PORT (3) /**< Data 2 Port for GPIO Pin Set 46 to 57 */
140- #define M4SS_PSRAM_D2_PIN (2) /**< Data 2 Pin for GPIO Pin Set 46 to 57 */
141- #define M4SS_PSRAM_D2_MUX (11) /**< Data 2 Mux for GPIO Pin Set 46 to 57 */
142- #define M4SS_PSRAM_D2_PAD (14) /**< Data 2 Pad for GPIO Pin Set 46 to 57 */
143-
144- #define M4SS_PSRAM_D3_PORT (3) /**< Data 3 Port for GPIO Pin Set 46 to 57 */
145- #define M4SS_PSRAM_D3_PIN (3) /**< Data 3 Pin for GPIO Pin Set 46 to 57 */
146- #define M4SS_PSRAM_D3_MUX (11) /**< Data 3 Mux for GPIO Pin Set 46 to 57 */
147- #define M4SS_PSRAM_D3_PAD (15) /**< Data 3 Pad for GPIO Pin Set 46 to 57 */
148-
149- #if (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_57_CS_0 ) \
150- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_57_CS_1 )
151-
152- #define M4SS_PSRAM_D4_PORT (3) /**< Data 4 Port for GPIO Pin Set 46 to 57 */
153- #define M4SS_PSRAM_D4_PIN (6) /**< Data 4 Pin for GPIO Pin Set 46 to 57 */
154- #define M4SS_PSRAM_D4_MUX (11) /**< Data 4 Mux for GPIO Pin Set 46 to 57 */
155- #define M4SS_PSRAM_D4_PAD (11) /**< Data 4 Pad for GPIO Pin Set 46 to 57 */
156-
157- #define M4SS_PSRAM_D5_PORT (3) /**< Data 5 Port for GPIO Pin Set 46 to 57 */
158- #define M4SS_PSRAM_D5_PIN (7) /**< Data 5 Pin for GPIO Pin Set 46 to 57 */
159- #define M4SS_PSRAM_D5_MUX (11) /**< Data 5 Mux for GPIO Pin Set 46 to 57 */
160- #define M4SS_PSRAM_D5_PAD (12) /**< Data 5 Pad for GPIO Pin Set 46 to 57 */
161-
162- #define M4SS_PSRAM_D6_PORT (3) /**< Data 6 Port for GPIO Pin Set 46 to 57 */
163- #define M4SS_PSRAM_D6_PIN (8) /**< Data 6 Pin for GPIO Pin Set 46 to 57 */
164- #define M4SS_PSRAM_D6_MUX (11) /**< Data 6 Mux for GPIO Pin Set 46 to 57 */
165- #define M4SS_PSRAM_D6_PAD (14) /**< Data 6 Pad for GPIO Pin Set 46 to 57 */
166-
167- #define M4SS_PSRAM_D7_PORT (3) /**< Data 7 Port for GPIO Pin Set 46 to 57 */
168- #define M4SS_PSRAM_D7_PIN (9) /**< Data 7 Pin for GPIO Pin Set 46 to 57 */
169- #define M4SS_PSRAM_D7_MUX (11) /**< Data 7 Mux for GPIO Pin Set 46 to 57 */
170- #define M4SS_PSRAM_D7_PAD (15) /**< Data 7 Pad for GPIO Pin Set 46 to 57 */
171-
172- #endif
173-
174- #if (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_51_CS_0 ) \
175- || (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_46_TO_51_CS_1 )
176- #define NUM_OF_PSRAM_PINS (6) /**< Number of PSRAM Pins for GPIO Pin Set 46 to 51 */
177- #else
178- #define NUM_OF_PSRAM_PINS (10) /**< Number of PSRAM Pins for GPIO Pin Set 46 to 57 */
179- #endif
180-
181- #elif (PSRAM_GPIO_PIN_SET_SEL == PSRAM_GPIO_PIN_SET_52_TO_57 )
182-
183- #define M4SS_PSRAM_CLK_PORT (3) /**< Clock Port for GPIO Pin Set 52 to 57 */
184- #define M4SS_PSRAM_CLK_PIN (4) /**< Clock Pin for GPIO Pin Set 52 to 57 */
185- #define M4SS_PSRAM_CLK_MUX (12) /**< Clock Mux for GPIO Pin Set 52 to 57 */
186- #define M4SS_PSRAM_CLK_PAD (16) /**< Clock Pad for GPIO Pin Set 52 to 57 */
187-
188- #define M4SS_PSRAM_CSN_PORT (3) /**< Chip Select Port for GPIO Pin Set 52 to 57 */
189- #define M4SS_PSRAM_CSN_PIN (7) /**< Chip Select Pin for GPIO Pin Set 52 to 57 */
190- #define M4SS_PSRAM_CSN_MUX (12) /**< Chip Select Mux for GPIO Pin Set 52 to 57 */
191- #define M4SS_PSRAM_CSN_PAD (19) /**< Chip Select Pad for GPIO Pin Set 52 to 57 */
192-
193- #define M4SS_PSRAM_D0_PORT (3) /**< Data 0 Port for GPIO Pin Set 52 to 57 */
194- #define M4SS_PSRAM_D0_PIN (5) /**< Data 0 Pin for GPIO Pin Set 52 to 57 */
195- #define M4SS_PSRAM_D0_MUX (12) /**< Data 0 Mux for GPIO Pin Set 52 to 57 */
196- #define M4SS_PSRAM_D0_PAD (17) /**< Data 0 Pad for GPIO Pin Set 52 to 57 */
197-
198- #define M4SS_PSRAM_D1_PORT (3) /**< Data 1 Port for GPIO Pin Set 52 to 57 */
199- #define M4SS_PSRAM_D1_PIN (6) /**< Data 1 Pin for GPIO Pin Set 52 to 57 */
200- #define M4SS_PSRAM_D1_MUX (12) /**< Data 1 Mux for GPIO Pin Set 52 to 57 */
201- #define M4SS_PSRAM_D1_PAD (18) /**< Data 1 Pad for GPIO Pin Set 52 to 57 */
202-
203- #define M4SS_PSRAM_D2_PORT (3) /**< Data 2 Port for GPIO Pin Set 52 to 57 */
204- #define M4SS_PSRAM_D2_PIN (8) /**< Data 2 Pin for GPIO Pin Set 52 to 57 */
205- #define M4SS_PSRAM_D2_MUX (12) /**< Data 2 Mux for GPIO Pin Set 52 to 57 */
206- #define M4SS_PSRAM_D2_PAD (20) /**< Data 2 Pad for GPIO Pin Set 52 to 57 */
207-
208- #define M4SS_PSRAM_D3_PORT (3) /**< Data 3 Port for GPIO Pin Set 52 to 57 */
209- #define M4SS_PSRAM_D3_PIN (9) /**< Data 3 Pin for GPIO Pin Set 52 to 57 */
210- #define M4SS_PSRAM_D3_MUX (12) /**< Data 3 Mux for GPIO Pin Set 52 to 57 */
211- #define M4SS_PSRAM_D3_PAD (21) /**< Data 3 Pad for GPIO Pin Set 52 to 57 */
212-
213- #define NUM_OF_PSRAM_PINS (6) /**< Number of PSRAM Pins for GPIO Pin Set 52 to 57 */
37+ /* Pinctrl is managed by Zephyr. Disable pinctrl in the HAL driver */
38+ #define NUM_OF_PSRAM_PINS 0
21439
21540#endif
216- /// @} end group PSRAM_PIN_CONFIG
217-
218- #endif //__SL_SI91X_PSRAM_HANDLE_H_
0 commit comments