Commit 9affaa1
committed
drivers: memc: stm32_xspi_psram: Add conditional HAL API support
Add conditional compilation to support different STM32 XSPI HAL
capabilities across product lines:
- Use XSPIM (XSPI Manager) configuration when available (STM32H7RS)
- Use 16-line data mode on STM32H7RS, 8-line on STM32H5
- Include MaxTran and MemorySelect Init fields only when XSPIM exists
This allows the driver to automatically use full hardware
capabilities on STM32H7RS (16-line XSPI with dual-port manager)
while maintaining compatibility with STM32H5 series that have
simpler single-port XSPI/OCTOSPI implementation with 8-line max.
Related to zephyrproject-rtos/hal_stm32#328
Signed-off-by: Ayush Kothari <[email protected]>1 parent 7fc8051 commit 9affaa1
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
219 | 220 | | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
301 | | - | |
| 305 | + | |
302 | 306 | | |
303 | 307 | | |
| 308 | + | |
304 | 309 | | |
305 | 310 | | |
306 | 311 | | |
| |||
322 | 327 | | |
323 | 328 | | |
324 | 329 | | |
325 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
326 | 335 | | |
327 | 336 | | |
328 | 337 | | |
| |||
401 | 410 | | |
402 | 411 | | |
403 | 412 | | |
404 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
405 | 416 | | |
406 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
407 | 420 | | |
408 | 421 | | |
409 | 422 | | |
| |||
0 commit comments