Merge pull request #887 from paulusmack/master
integration/soc/add_sdcard: Add an interrupt for command completion
This commit is contained in:
commit
482bd61ea5
|
@ -1550,11 +1550,13 @@ class LiteXSoC(SoC):
|
|||
self.sdirq.card_detect = EventSourcePulse(description="SDCard has been ejected/inserted.")
|
||||
self.sdirq.block2mem_dma = EventSourcePulse(description="Block2Mem DMA terminated.")
|
||||
self.sdirq.mem2block_dma = EventSourcePulse(description="Mem2Block DMA terminated.")
|
||||
self.sdirq.cmd_done = EventSourceLevel(description="Command completed.")
|
||||
self.sdirq.finalize()
|
||||
self.comb += [
|
||||
self.sdirq.card_detect.trigger.eq(self.sdphy.card_detect_irq),
|
||||
self.sdirq.block2mem_dma.trigger.eq(self.sdblock2mem.irq),
|
||||
self.sdirq.mem2block_dma.trigger.eq(self.sdmem2block.irq),
|
||||
self.sdirq.cmd_done.trigger.eq(self.sdcore.cmd_done)
|
||||
]
|
||||
|
||||
# Debug.
|
||||
|
|
Loading…
Reference in New Issue