Merge pull request #1012 from gsomlo/gls-json-ethmac-depth

json2dts_linux: update ethmac [tx|rx]-fifo-depth
This commit is contained in:
Tim Ansell 2021-08-25 15:23:27 -07:00 committed by GitHub
commit 0c11c19ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -275,8 +275,10 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
reg = <0x{ethmac_csr_base:x} 0x7c>, reg = <0x{ethmac_csr_base:x} 0x7c>,
<0x{ethphy_csr_base:x} 0x0a>, <0x{ethphy_csr_base:x} 0x0a>,
<0x{ethmac_mem_base:x} 0x{ethmac_mem_size:x}>; <0x{ethmac_mem_base:x} 0x{ethmac_mem_size:x}>;
tx-fifo-depth = <{ethmac_tx_slots}>; reg-names = "mac", "mdio", "buffer";
rx-fifo-depth = <{ethmac_rx_slots}>; litex,rx-slots = <{ethmac_rx_slots}>;
litex,tx-slots = <{ethmac_tx_slots}>;
litex,slot-size = <{ethmac_slot_size}>;
{ethmac_interrupt} {ethmac_interrupt}
status = "okay"; status = "okay";
}}; }};
@ -285,8 +287,9 @@ def generate_dts(d, initrd_start=None, initrd_size=None, polling=False):
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_mem_size = d["memories"]["ethmac"]["size"], ethmac_mem_size = d["memories"]["ethmac"]["size"],
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_tx_slots = d["constants"]["ethmac_tx_slots"],
ethmac_slot_size = d["constants"]["ethmac_slot_size"],
ethmac_interrupt = "" if polling else "interrupts = <{}>;".format(d["constants"]["ethmac_interrupt"])) ethmac_interrupt = "" if polling else "interrupts = <{}>;".format(d["constants"]["ethmac_interrupt"]))
# USB OHCI ------------------------------------------------------------------------------------- # USB OHCI -------------------------------------------------------------------------------------