parse.py: re-match block when parsing FLASH
This commit is contained in:
parent
52bf4debf5
commit
97fe75e96f
8
parse.py
8
parse.py
@ -425,10 +425,14 @@ def parse_chips():
|
|||||||
|
|
||||||
# FLASH is not in the cubedb XMLs
|
# FLASH is not in the cubedb XMLs
|
||||||
if addr := h['defines'].get('FLASH_R_BASE'):
|
if addr := h['defines'].get('FLASH_R_BASE'):
|
||||||
peris['FLASH'] = OrderedDict({
|
kind = 'FLASH:' + chip_name[:7] + '_flash_v1_0'
|
||||||
|
flash_peri = OrderedDict({
|
||||||
'address': addr,
|
'address': addr,
|
||||||
'kind': 'FLASH:' + chip_name[:7] + '_flash_v1_0',
|
'kind': kind,
|
||||||
})
|
})
|
||||||
|
if block := match_peri(kind):
|
||||||
|
flash_peri['block'] = block
|
||||||
|
peris['FLASH'] = flash_peri
|
||||||
|
|
||||||
chip['peripherals'] = peris
|
chip['peripherals'] = peris
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user