doc: fix regression with new irq manager
Previously, we were accessing the `soc.soc_interrupt_map` property in order to be able to enumerate the interrupts. This has been subsumed into a more general `irq` object that manages the interrupts. Use `soc.irq.locs` instead of `soc.soc_interrupt_map` as the authority on interrupts for both doc and export. This fixes #385. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
1620f9c5b0
commit
baa29f1b03
|
@ -70,7 +70,7 @@ def generate_docs(soc, base_dir, project_name="LiteX SoC Project",
|
||||||
|
|
||||||
# Gather all interrupts so we can easily map IRQ numbers to CSR sections
|
# Gather all interrupts so we can easily map IRQ numbers to CSR sections
|
||||||
interrupts = {}
|
interrupts = {}
|
||||||
for csr, irq in sorted(soc.soc_interrupt_map.items()):
|
for csr, irq in sorted(soc.irq.locs.items()):
|
||||||
interrupts[csr] = irq
|
interrupts[csr] = irq
|
||||||
|
|
||||||
# Convert each CSR region into a DocumentedCSRRegion.
|
# Convert each CSR region into a DocumentedCSRRegion.
|
||||||
|
|
|
@ -333,7 +333,7 @@ def get_svd(soc, vendor="litex", name="soc", description=None):
|
||||||
svd.append(' </register>')
|
svd.append(' </register>')
|
||||||
|
|
||||||
interrupts = {}
|
interrupts = {}
|
||||||
for csr, irq in sorted(soc.soc_interrupt_map.items()):
|
for csr, irq in sorted(soc.irq.locs.items()):
|
||||||
interrupts[csr] = irq
|
interrupts[csr] = irq
|
||||||
|
|
||||||
documented_regions = []
|
documented_regions = []
|
||||||
|
|
Loading…
Reference in New Issue