jerpelea opened a new pull request, #21184:
URL: https://github.com/apache/nuttx/pull/21184
## Summary
Two fixes to the RP2350 PSRAM driver. I found them when I compared it with
the hardware_psram library of the Pico SDK 2.3.1.
Wait for DIRECT_CSR.BUSY to go low after the driver enables the QMI
direct mode. The datasheet (12.14.5) requires this wait, and the SDK does it.
The driver did not wait at the two places where it enables direct mode. The
three BUSY loops that were already there now use one RAM-resident helper.
Compute the QMI M1 timing from BOARD_SYS_FREQ with the SDK formula. The
constant 0x61a07102 did not match the SDK, but its comment said it did. At 150
MHz the SDK value is 0x60242202: RX delay 2 (was 1), minimum deselect 2 (was
7), maximum select 18 (was 16), select hold 0 (was 3). The clock divisor stays
2.
This PR is independent of the flash MTD PR
(https://github.com/apache/nuttx/pull/20480). They merge in either order
without conflict.
## Impact
RELEASE
## Testing
CI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]