parse.py: re-match block when parsing FLASH

This commit is contained in:
Thales Fragoso 2021-05-19 23:01:13 -03:00
parent 52bf4debf5
commit 97fe75e96f

View File

@ -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