jerpelea opened a new pull request, #21170:
URL: https://github.com/apache/nuttx/pull/21170
## Summary
This PR adds two fixes for imxrt_lpspi, targeted for imxrt1180:
IMXRT118x crashes when trying to read the LPSPI register if the block
doesn't have clocks. The very
first initialization however already checks the IMXRT_LPSPI_CR. Instead
of trying to read the register
without knowing what state the block is in, just have an "initialized"
flag in the priv structure.
There is a small change in the LPSPI IP used in imxrt118x compared to
previous versions; the LPSPI_CCR
register is no longer read/write. Instead, read always returns 0. This
causes the modifyreg32 always zeroing
out all the bits which it is not setting. Fix this for 118x only by
using putreg8 to write the part of the register.
This is the RM instructed method for setting it.
## 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]