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

Add support Flash QSPI on S32ZE #434

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

congnguyenhuu
Copy link
Contributor

Add baremetal driver for QSPI on S32ZE devices and headers for QSPI on SoC S32Z270

@congnguyenhuu congnguyenhuu changed the title Add support flash qspi on S32ZE Add support Flash QSPI on S32ZE Sep 6, 2024
@Dat-NguyenDuy
Copy link
Contributor

Could you pls explain why these values are chosen:

 P4_QSPI0_1X_CLK is 200 MHz
 P4_QSPI0_2X_CLK is 400 MHz
 P4_QSPI1_1X_CLK is 150 MHz
 P4_QSPI1_2X_CLK is 300 MHz

@congnguyenhuu
Copy link
Contributor Author

Could you pls explain why these values are chosen:

 P4_QSPI0_1X_CLK is 200 MHz
 P4_QSPI0_2X_CLK is 400 MHz
 P4_QSPI1_1X_CLK is 150 MHz
 P4_QSPI1_2X_CLK is 300 MHz

these value is maximum value frequency that is configurable in range of QSPI frequency

@manuargue manuargue self-assigned this Sep 12, 2024
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch 2 times, most recently from 08e4b37 to fc0b5b6 Compare September 27, 2024 11:16
This is the Mem_ExFls Qspi baremetal driver for s32ze

Signed-off-by: Cong Nguyen Huu <[email protected]>
Use zephyr .nocache section for non-cacheable variables.

Signed-off-by: Cong Nguyen Huu <[email protected]>
Code autogenerated with S32 Design Studio for s32ze

Signed-off-by: Cong Nguyen Huu <[email protected]>
Adapt macros that are used in the QSPI memc and
QSPI flash shim drivers.

Signed-off-by: Cong Nguyen Huu <[email protected]>
Select PERIPHPLL_DFS0 clock as QSPI0 clock source
Select PERIPHPLL_DFS2 clock as QSPI1 clock source
Update QSPI dividers so that value clocks:
 P4_QSPI0_1X_CLK is 200 MHz
 P4_QSPI0_2X_CLK is 400 MHz
 P4_QSPI1_1X_CLK is 150 MHz
 P4_QSPI1_2X_CLK is 300 MHz

Signed-off-by: Cong Nguyen Huu <[email protected]>
@congnguyenhuu
Copy link
Contributor Author

I rebased the latest hal_nxp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants