mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
tools/litex_json2dts: Add initial USB OHCI support.
This commit is contained in:
parent
acebc949c6
commit
0b329c3dce
1 changed files with 15 additions and 1 deletions
|
@ -229,7 +229,21 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
|
||||||
ethmac_rx_slots = d["constants"]["ethmac_rx_slots"],
|
ethmac_rx_slots = d["constants"]["ethmac_rx_slots"],
|
||||||
ethmac_interrupt = "" if polling else "interrupts = <{}>;".format(d["constants"]["ethmac_interrupt"]))
|
ethmac_interrupt = "" if polling else "interrupts = <{}>;".format(d["constants"]["ethmac_interrupt"]))
|
||||||
|
|
||||||
# SPI Flash -------------------------------------------------------------------------------------
|
# USB OHCI -------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
if "usb_ohci_ctrl" in d["memories"]:
|
||||||
|
dts += """
|
||||||
|
usb0: mac@{usb_ohci_mem_base:x} {{
|
||||||
|
compatible = "generic-ohci";
|
||||||
|
reg = <0x{usb_ohci_mem_base:x} 0x1000>;
|
||||||
|
{usb_ohci_interrupt}
|
||||||
|
status = "okay";
|
||||||
|
}};
|
||||||
|
""".format(
|
||||||
|
usb_ohci_mem_base = d["memories"]["usb_ohci_ctrl"]["base"],
|
||||||
|
usb_ohci_interrupt = "" if polling else "interrupts = <{}>;".format(16)) # FIXME
|
||||||
|
|
||||||
|
# SPI Flash ------------------------------------------------------------------------------------
|
||||||
|
|
||||||
if "spiflash" in d["csr_bases"]:
|
if "spiflash" in d["csr_bases"]:
|
||||||
aliases["spiflash"] = "litespiflash"
|
aliases["spiflash"] = "litespiflash"
|
||||||
|
|
Loading…
Reference in a new issue