mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
parent
bddb170650
commit
5cc2c4aaf7
1 changed files with 8 additions and 2 deletions
|
@ -28,6 +28,7 @@ def generate_dts(d):
|
||||||
/ {
|
/ {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
interrupt-parent = <&intc0>;
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -180,9 +181,12 @@ def generate_dts(d):
|
||||||
device_type = "serial";
|
device_type = "serial";
|
||||||
compatible = "litex,liteuart";
|
compatible = "litex,liteuart";
|
||||||
reg = <0x{uart_csr_base:x} 0x100>;
|
reg = <0x{uart_csr_base:x} 0x100>;
|
||||||
|
interrupts = <{uart_interrupt}>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
}};
|
}};
|
||||||
""".format(uart_csr_base=d["csr_bases"]["uart"])
|
""".format(
|
||||||
|
uart_csr_base = d["csr_bases"]["uart"],
|
||||||
|
uart_interrupt = d["constants"]["uart_interrupt"])
|
||||||
|
|
||||||
# Ethernet -------------------------------------------------------------------------------------
|
# Ethernet -------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -195,13 +199,15 @@ def generate_dts(d):
|
||||||
<0x{ethmac_mem_base:x} 0x2000>;
|
<0x{ethmac_mem_base:x} 0x2000>;
|
||||||
tx-fifo-depth = <{ethmac_tx_slots}>;
|
tx-fifo-depth = <{ethmac_tx_slots}>;
|
||||||
rx-fifo-depth = <{ethmac_rx_slots}>;
|
rx-fifo-depth = <{ethmac_rx_slots}>;
|
||||||
|
interrupts = <{ethmac_interrupt}>;
|
||||||
}};
|
}};
|
||||||
""".format(
|
""".format(
|
||||||
ethphy_csr_base = d["csr_bases"]["ethphy"],
|
ethphy_csr_base = d["csr_bases"]["ethphy"],
|
||||||
ethmac_csr_base = d["csr_bases"]["ethmac"],
|
ethmac_csr_base = d["csr_bases"]["ethmac"],
|
||||||
ethmac_mem_base = d["memories"]["ethmac"]["base"],
|
ethmac_mem_base = d["memories"]["ethmac"]["base"],
|
||||||
ethmac_tx_slots = d["constants"]["ethmac_tx_slots"],
|
ethmac_tx_slots = d["constants"]["ethmac_tx_slots"],
|
||||||
ethmac_rx_slots = d["constants"]["ethmac_rx_slots"])
|
ethmac_rx_slots = d["constants"]["ethmac_rx_slots"],
|
||||||
|
ethmac_interrupt = d["constants"]["ethmac_interrupt"])
|
||||||
|
|
||||||
# SPI Flash -------------------------------------------------------------------------------------
|
# SPI Flash -------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue