Merge pull request #100 from fjullien/fix_trionrgmii

phy: trionrgmii: add 'properties' to GPIO
This commit is contained in:
enjoy-digital 2022-01-13 14:31:39 +01:00 committed by GitHub
commit c3e3dee0e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ class LiteEthPHYRGMIITX(Module):
for n in range(4):
name = platform.get_pin_name(pads.tx_data[n])
pad = platform.get_pin_location(pads.tx_data[n])
io_prop = platform.get_pin_properties(pads.tx_data[n])
name = f"auto_{name}"
tx_data_h.append(platform.add_iface_io(name + "_HI"))
@ -39,6 +40,7 @@ class LiteEthPHYRGMIITX(Module):
"mode" : "OUTPUT",
"name" : name,
"location" : pad,
"properties" : io_prop,
"size" : 1,
"out_reg" : "DDIO_RESYNC",
"out_clk_pin" : "auto_eth_tx_clk",
@ -73,6 +75,7 @@ class LiteEthPHYRGMIIRX(Module):
for n in range(4):
name = platform.get_pin_name(pads.rx_data[n])
pad = platform.get_pin_location(pads.rx_data[n])
io_prop = platform.get_pin_properties(pads.rx_data[n])
name = f"auto_{name}"
rx_data_h.append(platform.add_iface_io(name + "_HI"))
@ -83,6 +86,7 @@ class LiteEthPHYRGMIIRX(Module):
"mode" : "INPUT",
"name" : name,
"location" : pad,
"properties" : io_prop,
"size" : 1,
"in_reg" : "DDIO_RESYNC",
"in_clk_pin" : "auto_eth_rx_clk",
@ -127,6 +131,7 @@ class LiteEthPHYRGMIICRG(Module, AutoCSR):
"type" : "GPIO",
"size" : 1,
"location" : platform.get_pin_location(clock_pads.rx)[0],
"properties" : platform.get_pin_properties(clock_pads.rx),
"name" : platform.get_pin_name(eth_rx_clk),
"mode" : "INPUT_CLK"
}
@ -142,6 +147,7 @@ class LiteEthPHYRGMIICRG(Module, AutoCSR):
"type" : "GPIO",
"size" : 1,
"location" : platform.get_pin_location(clock_pads.tx)[0],
"properties" : platform.get_pin_properties(clock_pads.tx),
"name" : "auto_eth_tx_clk_delayed",
"mode" : "OUTPUT_CLK"
}