dts: stm32h7: flash-controller: Add default STM32 as compatible
Add "st,stm32-flash-controller" as compatible for STM32H7 so that what is defined for STM32 in general is also defined for STM32H7. Already most of the other STM32 versions have this addition. Also removed the specific STM32H7 flag check in /flash/driver/Kconfig.stm32. Signed-off-by: Stefan Petersen <spe@ciellt.se>
This commit is contained in:
parent
fcdf31521f
commit
58ca047fa7
2 changed files with 2 additions and 3 deletions
|
@ -8,8 +8,7 @@
|
|||
|
||||
config SOC_FLASH_STM32
|
||||
bool "STM32 flash driver"
|
||||
depends on DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED || \
|
||||
DT_HAS_ST_STM32H7_FLASH_CONTROLLER_ENABLED
|
||||
depends on DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED
|
||||
select FLASH_HAS_DRIVER_ENABLED
|
||||
default y
|
||||
select FLASH_PAGE_LAYOUT
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
|
||||
soc {
|
||||
flash: flash-controller@52002000 {
|
||||
compatible = "st,stm32h7-flash-controller";
|
||||
compatible = "st,stm32-flash-controller", "st,stm32h7-flash-controller";
|
||||
reg = <0x52002000 0x400>;
|
||||
interrupts = <4 0>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_AHB3 0x00000100>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue