tools/litex_json2dts: Add interrupt settings for sdcard
This commit is contained in:
parent
dc1a4c5380
commit
a9e935e61a
|
@ -283,8 +283,10 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
|||
reg = <0x{sdphy_csr_base:x} 0x100>,
|
||||
<0x{sdcore_csr_base:x} 0x100>,
|
||||
<0x{sdblock2mem:x} 0x100>,
|
||||
<0x{sdmem2block:x} 0x100>;
|
||||
<0x{sdmem2block:x} 0x100>,
|
||||
<0x{sdirq:x} 0x100>;
|
||||
bus-width = <0x04>;
|
||||
{sdirq_interrupt}
|
||||
status = "okay";
|
||||
}};
|
||||
""".format(
|
||||
|
@ -292,7 +294,9 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
|||
sdphy_csr_base = d["csr_bases"]["sdphy"],
|
||||
sdcore_csr_base = d["csr_bases"]["sdcore"],
|
||||
sdblock2mem = d["csr_bases"]["sdblock2mem"],
|
||||
sdmem2block = d["csr_bases"]["sdmem2block"]
|
||||
sdmem2block = d["csr_bases"]["sdmem2block"],
|
||||
sdirq = d["csr_bases"]["sdirq"],
|
||||
sdirq_interrupt = "" if polling else "interrupts = <{}>;".format(d["constants"]["sdirq_interrupt"])
|
||||
)
|
||||
# Leds -----------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue