Commit d6dae87b authored by Kedareswara rao Appana's avatar Kedareswara rao Appana Committed by Naga Sureshkumar Relli
Browse files

axi_ethernet: Don't hard code phy node address



Current tcl hardcording phynode name as phy0
in case of multiple macs and phys it may have the same name
resulting compilation issue of the DTG.

This patch fixes this issue.
Signed-off-by: default avatarKedareswara rao Appana <appanad@xilinx.com>
Acked-by: default avatarNaga Sureshkumar Relli <nagasure@xilinx.com>
parent 0c7df0a2
......@@ -149,7 +149,7 @@ proc generate {drv_handle} {
proc pcspma_phy_node {slave} {
set phyaddr [get_property CONFIG.PHYADDR $slave]
set phyaddr [::hsi::utils::convert_binary_to_decimal $phyaddr]
set phymode "phy0"
set phymode "phy$phyaddr"
return "$phyaddr $phymode"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment