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

ethernet: Add support for 10G MAC



This patch adds support for the 10G MAC in the
existing axi ethernet device tree driver.
Signed-off-by: default avatarKedareswara rao Appana <appanad@xilinx.com>
Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 802361b1
......@@ -16,7 +16,7 @@ OPTION psf_version = 3.0;
BEGIN driver axi_ethernet
OPTION supported_peripherals = (axi_ethernet axi_ethernet_buffer);
OPTION supported_peripherals = (axi_ethernet axi_ethernet_buffer axi_10g_ethernet);
OPTION driver_state = ACTIVE;
OPTION NAME = axi_ethernet;
OPTION supported_os_types = (DTS);
......
......@@ -36,8 +36,9 @@ proc generate {drv_handle} {
# search for a valid bus interface name
# This is required to work with Vivado 2015.1 due to IP PIN naming change
set hasbuf [get_property CONFIG.processor_mode $eth_ip]
set ip_name [get_property IP_NAME $eth_ip]
if {$hasbuf == "true" || $hasbuf == ""} {
if {$hasbuf == "true" || $hasbuf == "" && $ip_name != "axi_10g_ethernet"} {
foreach n "AXI_STR_RXD m_axis_rxd" {
set intf [get_intf_pins -of_objects $eth_ip ${n}]
if {[string_is_empty ${intf}] != 1} {
......@@ -83,7 +84,6 @@ proc generate {drv_handle} {
set_property xlnx,rxmem "$rxethmem" $drv_handle
}
set ip_name [get_property IP_NAME $eth_ip]
if {$ip_name == "axi_ethernet"} {
set txcsum [get_property CONFIG.TXCSUM $eth_ip]
set txcsum [get_checksum $txcsum]
......@@ -136,6 +136,12 @@ proc generate {drv_handle} {
gen_phy_node $mdio_node $phy_name $phya
}
}
if {$ip_name == "axi_10g_ethernet"} {
set phytype [get_property CONFIG.base_kr $eth_ip]
set_property phy-mode "$phytype" $drv_handle
set compatstring "xlnx,ten-gig-eth-mac"
set_property compatible "$compatstring" $drv_handle
}
gen_dev_ccf_binding $drv_handle "s_axi_aclk"
}
......
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