Skip to content

Conversation

@str4t0m
Copy link
Contributor

@str4t0m str4t0m commented Apr 28, 2021

Add device tree clocks property for stm32h7 series to fix issue #34605 build failure.
Continuation of #34344.

Fixes #34605

Remark: Couldn't run it as I don't have the board.

This commit adds flash clock settings in device tree for stm32h7
series such that the stm32h7 flash driver can get the clock settings
from this dtsi file.

Signed-off-by: Thomas Stranger <[email protected]>
@str4t0m str4t0m marked this pull request as ready for review April 28, 2021 05:45
str4t0m added 2 commits April 28, 2021 07:45
This commit fixes missing pclken member if used for h7 series.
Additionally to the check if instance 0 of compatible
st_stm32_flash_controller has defined a clock,
this needs to be checked for compatible st_stm32h7_flash_controller.

Signed-off-by: Thomas Stranger <[email protected]>
This commit replaces driver hard coded clk bus and enr definitions with
definitions from device tree.

Signed-off-by: Thomas Stranger <[email protected]>
@str4t0m str4t0m force-pushed the fix_flash_stm32h7 branch from 856ddbe to 02fbb39 Compare April 28, 2021 05:47
@str4t0m
Copy link
Contributor Author

str4t0m commented Apr 28, 2021

@ikmdani, @FRASTM

@str4t0m str4t0m changed the title Fix flash stm32h7 build failure Fix flash stm32h7 build failure, by adding dt flash clocks property Apr 28, 2021
@galak galak merged commit 4cd7ff6 into zephyrproject-rtos:master Apr 28, 2021
@str4t0m str4t0m deleted the fix_flash_stm32h7 branch May 3, 2021 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flash_stm32h7x.c fails to build

4 participants