Skip to content

Commit 3c5ddb0

Browse files
bors[bot]richardeoinburrbull
authored
Merge #653 #660
653: Fix rename of H7 RM0455 OCTOSPI peripheral r=adamgreig a=richardeoin Previous modification did not work as this peripheral is `derivedFrom` OCTOSPI in the original SVD 660: L4 Firewall same as L0 r=adamgreig a=burrbull Co-authored-by: Richard Meadows <962920+richardeoin@users.noreply.github.com> Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
3 parents e5843af + 28bcbfd + 895ce56 commit 3c5ddb0

13 files changed

+23
-8
lines changed

devices/common_patches/h7_common_highmemory.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ _modify:
1212
name: FDCAN2
1313
DAC:
1414
name: DAC1
15-
OCTOSPI1_CONTROL_REGISTER:
16-
name: OCTOSPI1
1715

1816
# The SVD is just quite different to the RM for all these registers.
1917
# We'll go with the RM convention even though it is inconsistent too.
@@ -313,6 +311,8 @@ AXI:
313311
# Work around the DMA_STR? interrupt mess in the SVD.
314312
# Some interrupts are on DMA2 instead on DMA1 and/or called DMA_STR? without
315313
# the numeral.
314+
#
315+
# Since it is not possible to modify a derivedFrom peripheral, we delete it first
316316

317317
_delete:
318318
- DMA2
@@ -322,6 +322,7 @@ _delete:
322322
- UART8
323323
- USART9
324324
- USART10
325+
- OCTOSPI1_CONTROL_REGISTER
325326

326327
_add:
327328
DMA2:
@@ -394,6 +395,13 @@ _add:
394395
USART10:
395396
description: USART10 global interrupt
396397
value: 141
398+
OCTOSPI1:
399+
derivedFrom: OCTOSPI2
400+
baseAddress: 0x52005000
401+
interrupts:
402+
OCTOSPI1:
403+
description: OCTOSPI global interrupt
404+
value: 92
397405
DAC2:
398406
derivedFrom: DAC1
399407
baseAddress: 0x58003400

devices/stm32l0x0.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ _include:
8989
- ../peripherals/dma/dma_v1_with_remapping.yaml
9090
- ../peripherals/exti/exti.yaml
9191
- ../peripherals/flash/flash_l0.yaml
92-
- ../peripherals/fw/fw_l0.yaml
92+
- ../peripherals/fw/fw_l0_l4.yaml
9393
- ../peripherals/gpio/gpio_l0.yaml
9494
- ../peripherals/i2c/i2c_v2.yaml
9595
- ../peripherals/iwdg/iwdg_with_WINR.yaml

devices/stm32l0x1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ _include:
139139
- ../peripherals/dma/dma_v1_with_remapping.yaml
140140
- ../peripherals/exti/exti.yaml
141141
- ../peripherals/flash/flash_l0.yaml
142-
- ../peripherals/fw/fw_l0.yaml
142+
- ../peripherals/fw/fw_l0_l4.yaml
143143
- ../peripherals/gpio/gpio_l0.yaml
144144
- ../peripherals/i2c/i2c_v2.yaml
145145
- ../peripherals/iwdg/iwdg_with_WINR.yaml

devices/stm32l0x2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ _include:
140140
- ../peripherals/dma/dma_v1_with_remapping.yaml
141141
- ../peripherals/exti/exti.yaml
142142
- ../peripherals/flash/flash_l0.yaml
143-
- ../peripherals/fw/fw_l0.yaml
143+
- ../peripherals/fw/fw_l0_l4.yaml
144144
- ../peripherals/gpio/gpio_l0.yaml
145145
- ../peripherals/i2c/i2c_v2.yaml
146146
- ../peripherals/iwdg/iwdg_with_WINR.yaml

devices/stm32l0x3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ _include:
150150
- ../peripherals/dma/dma_v1_with_remapping.yaml
151151
- ../peripherals/exti/exti.yaml
152152
- ../peripherals/flash/flash_l0.yaml
153-
- ../peripherals/fw/fw_l0.yaml
153+
- ../peripherals/fw/fw_l0_l4.yaml
154154
- ../peripherals/gpio/gpio_l0.yaml
155155
- ../peripherals/i2c/i2c_v2.yaml
156156
- ../peripherals/iwdg/iwdg_with_WINR.yaml

devices/stm32l412.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,4 @@ MPU:
233233
# Most of the other patches for this device are common with the L4x2 device.
234234
_include:
235235
- ./common_patches/stm32l4x2_l412.yaml
236+
- ../peripherals/fw/fw_l0_l4.yaml

devices/stm32l4r9.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ _include:
7272
- common_patches/rtc/rtc_cr.yaml
7373
- common_patches/tsc/tsc.yaml
7474
- ./common_patches/flash/flash_boot0s.yaml
75+
- ../peripherals/fw/fw_l0_l4.yaml
7576
- ../peripherals/sai/sai.yaml
7677
- ../peripherals/dma/dma2d_v1.yaml
7778
- common_patches/usb_otg/otg_fs_remove_prefix.yaml

devices/stm32l4x1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ _include:
124124
- common_patches/tsc/tsc.yaml
125125
- common_patches/fpu_interrupt.yaml
126126
- ./common_patches/flash/flash_boot0s.yaml
127+
- ../peripherals/fw/fw_l0_l4.yaml
127128
- ../peripherals/sai/sai.yaml
128129
- ./common_patches/l4_adc_common.yaml
129130
- ./common_patches/l4_adc_smpr.yaml

devices/stm32l4x2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ MPU:
99
_include:
1010
- ./common_patches/stm32l4x2_l412.yaml
1111
- common_patches/rtc/rtc_bkpr.yaml
12+
- ../peripherals/fw/fw_l0_l4.yaml

devices/stm32l4x3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ _include:
154154
- common_patches/rtc/rtc_cr.yaml
155155
- common_patches/tsc/tsc.yaml
156156
- ./common_patches/flash/flash_boot0s.yaml
157+
- ../peripherals/fw/fw_l0_l4.yaml
157158
- ../peripherals/sai/sai.yaml
158159
- common_patches/dma_interrupt_names.yaml
159160
- ./common_patches/l4_adc_common.yaml

devices/stm32l4x5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ _include:
173173
- common_patches/rtc/rtc_cr.yaml
174174
- common_patches/tsc/tsc.yaml
175175
- ./common_patches/flash/flash_boot0s.yaml
176+
- ../peripherals/fw/fw_l0_l4.yaml
176177
- ../peripherals/sai/sai.yaml
177178
- common_patches/dma_interrupt_names.yaml
178179
- ./common_patches/l4_adc_smpr.yaml

devices/stm32l4x6.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ _include:
8080
- common_patches/rtc/rtc_cr.yaml
8181
- common_patches/tsc/tsc.yaml
8282
- ./common_patches/flash/flash_boot0s.yaml
83+
- ../peripherals/fw/fw_l0_l4.yaml
8384
- ../peripherals/sai/sai.yaml
8485
- ../peripherals/dma/dma2d_v1.yaml
8586
- ./common_patches/l4_spi.yaml

peripherals/fw/fw_l0.yaml renamed to peripherals/fw/fw_l0_l4.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# This FW is used on the STM32L0 families.
1+
# This FW is used on the STM32L0/L4 families.
22

3-
"FW":
3+
"FW,FIREWALL":
44
CSSA:
55
ADD: [0, 0xFFFF]
66
CSL:

0 commit comments

Comments
 (0)