Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: memc: add driver for APS6404L PSRAM using FLEXSPI #79886

Merged
merged 6 commits into from
Oct 22, 2024

Conversation

danieldegrasse
Copy link
Collaborator

Add driver for APS6404L PSRAM using the FLEXSPI memc interface, and enable the PSRAM on the FRDM-RW612 board.

This PR also adds the following for the FLEXSPI MEMC driver:

  • support for the ahb-boundary property, which prevents flash access from crossing page boundaries
  • remove the AHB address adjustment done when the ADDRSHIFT bit was set. This is not correct logic, as the ADDRSHIFT bit is not used to map flash devices into a different memory region.

danieldegrasse and others added 6 commits October 15, 2024 17:23
The ADDRSHIFT bit simply left shifts the address written to IPCR0[SFAR],
(or the address used for AHB access), by 5 bits before sending it to the
attached memory. This bit does not have an effect on the base address
used to access the flash/psram device.

Signed-off-by: Daniel DeGrasse <[email protected]>
is66wvq8m4 PSRAM always requires the address to be left shifted by
5 bits, regardless of which FLEXSPI port it is on. Fix the addressShift
assignment to be unconditional

Signed-off-by: Daniel DeGrasse <[email protected]>
Some instances of the FLEXSPI IP permit limiting AHB bus access so that
no memory access requests will straddle a page boundary. Add a property
to manage this setting.

Signed-off-by: Daniel DeGrasse <[email protected]>
Add driver for aps6404l PSRAM, using FlexSPI MEMC driver interface.

Signed-off-by: David Missael Maciel <[email protected]>
Add entry for aps6404l PSRAM on frdm_rw612 board

Signed-off-by: David Missael Maciel <[email protected]>
Enable support for FRDM_RW612 with memc driver sample, using attached
aps6404l PSRAM.

Signed-off-by: David Missael Maciel <[email protected]>
@nashif nashif merged commit cddf01d into zephyrproject-rtos:main Oct 22, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants