-
Notifications
You must be signed in to change notification settings - Fork 8.2k
stm32h7rs xspi Node with domain clock for peripheral clock configuration #88051
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0cfdd54
soc: st: stm32 Kconfig to retrieve the external Flash Base address
FRASTM c41a0c7
drivers: flash: stm32 xspi driver supports clock domain config
FRASTM c7b54c2
drivers: flash: stm32 xspi drivers supporting the stm32h7r/s mcu
FRASTM 15bcfb6
drivers: flash: stm32 xspi flash driver set the DelayBlock if exists
FRASTM 09493b9
drivers: clock control: stm32H7RS has a PLL2 & 3 or HCLK5 output
FRASTM c2ddf9f
dts: arm: stm32h7rs mcu with external memory area
FRASTM e7a1f50
boards: st: stm32h7s3l8 nucleo board supporting xspi instance
FRASTM 20adb4b
boards: arm: stm32h7s78 disco kit supporting xspi instance
FRASTM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,11 @@ LOG_MODULE_REGISTER(flash_stm32_xspi, CONFIG_FLASH_LOG_LEVEL); | |
| #include <stm32_ll_dma.h> | ||
| #endif /* STM32_XSPI_USE_DMA */ | ||
|
|
||
| #if defined(CONFIG_SOC_SERIES_STM32H7RSX) | ||
| #include <stm32_ll_pwr.h> | ||
| #include <stm32_ll_system.h> | ||
| #endif /* CONFIG_SOC_SERIES_STM32H7RSX */ | ||
|
|
||
| #include "flash_stm32_xspi.h" | ||
|
|
||
| static inline void xspi_lock_thread(const struct device *dev) | ||
|
|
@@ -2068,6 +2073,11 @@ static int flash_stm32_xspi_init(const struct device *dev) | |
| LOG_ERR("XSPI mode SPI|DUAL|QUAD/DTR is not valid"); | ||
| return -ENOTSUP; | ||
| } | ||
| #if defined(CONFIG_SOC_SERIES_STM32H7RSX) | ||
| LL_PWR_EnableXSPIM2(); | ||
| __HAL_RCC_SBS_CLK_ENABLE(); | ||
| LL_SBS_EnableXSPI2SpeedOptim(); | ||
| #endif /* CONFIG_SOC_SERIES_STM32H7RSX */ | ||
|
|
||
| /* Signals configuration */ | ||
| ret = pinctrl_apply_state(dev_cfg->pcfg, PINCTRL_STATE_DEFAULT); | ||
|
|
@@ -2158,7 +2168,8 @@ static int flash_stm32_xspi_init(const struct device *dev) | |
|
|
||
| LOG_DBG("XSPI Init'd"); | ||
|
|
||
| #if defined(HAL_XSPIM_IOPORT_1) || defined(HAL_XSPIM_IOPORT_2) | ||
| #if defined(HAL_XSPIM_IOPORT_1) || defined(HAL_XSPIM_IOPORT_2) || \ | ||
| defined(XSPIM) || defined(XSPIM1) || defined(XSPIM2) | ||
| /* XSPI I/O manager init Function */ | ||
| XSPIM_CfgTypeDef xspi_mgr_cfg; | ||
|
|
||
|
|
@@ -2471,9 +2482,12 @@ static struct flash_stm32_xspi_data flash_stm32_xspi_dev_data = { | |
| : HAL_XSPI_CSSEL_NCS2), | ||
| #endif | ||
| .FreeRunningClock = HAL_XSPI_FREERUNCLK_DISABLE, | ||
| #if defined(OCTOSPI_DCR4_REFRESH) | ||
| #if defined(XSPI_DCR3_MAXTRAN) | ||
| .MaxTran = 0, | ||
| #endif /* XSPI_DCR3_MAXTRAN */ | ||
| #if defined(XSPI_DCR4_REFRESH) | ||
| .Refresh = 0, | ||
| #endif /* OCTOSPI_DCR4_REFRESH */ | ||
| #endif /* XSPI_DCR4_REFRESH */ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default loading 0 values is not strictly needed. Maybe simpler if removed. |
||
| }, | ||
| }, | ||
| .qer_type = DT_QER_PROP_OR(0, JESD216_DW15_QER_VAL_S1B6), | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicking: may I suggest an empty line above?