From a15053839174ffc41c5ea62d504810e300ff4465 Mon Sep 17 00:00:00 2001 From: Kedareswara rao Appana Date: Thu, 8 Jan 2015 18:29:25 +0530 Subject: [PATCH] ethernet: Fix TCL errors in the driver This patch fixes the tcl errors in the driver when axi ethernet is configured with the axi stream fifo. Signed-off-by: Kedareswara rao Appana --- .../drivers/axiethernet/data/axiethernet.tcl | 8 +++++--- .../drivers/axiethernet/src/xaxiethernet.h | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/axiethernet/data/axiethernet.tcl b/XilinxProcessorIPLib/drivers/axiethernet/data/axiethernet.tcl index b341b7b0..c019520b 100755 --- a/XilinxProcessorIPLib/drivers/axiethernet/data/axiethernet.tcl +++ b/XilinxProcessorIPLib/drivers/axiethernet/data/axiethernet.tcl @@ -43,6 +43,8 @@ # properly (CR 810643) # 29/10/14 adk Added support for generating parameters for SGMII/1000BaseX modes # When IP is configured with the PCS/PMA core (CR 828796) +# 8/1/15 adk Fixed TCL errors when axiethernet is configured with the +# Axi stream fifo (CR 835605). # ############################################################################### #uses "xillib.tcl" @@ -237,9 +239,9 @@ proc xdefine_axi_target_params {periphs file_handle} { add_field_to_periph_config_struct $device_id 0xFF } else { set canonical_name [format "XPAR_%s_CONNECTED_FIFO_INTR" $canonical_tag] - set target_periph_name [string toupper [get_property NAME $target_periph_type]] - puts $file_handle [format "#define $canonical_name XPAR_FABRIC_%s_S2MM_INTROUT_INTR" $target_periph_name] - add_field_to_periph_config_struct $deviceid $canonical_name + set temp [string toupper $int_pin] + puts $file_handle [format "#define $canonical_name XPAR_FABRIC_%s_%s_INTR" $target_periph_name $temp] + add_field_to_periph_config_struct $device_id $canonical_name puts $file_handle [format "#define XPAR_%s_CONNECTED_DMARX_INTR 0xFF" $canonical_tag] puts $file_handle [format "#define XPAR_%s_CONNECTED_DMATX_INTR 0xFF" $canonical_tag] add_field_to_periph_config_struct $device_id 0xFF diff --git a/XilinxProcessorIPLib/drivers/axiethernet/src/xaxiethernet.h b/XilinxProcessorIPLib/drivers/axiethernet/src/xaxiethernet.h index 20ef2f20..767f2112 100755 --- a/XilinxProcessorIPLib/drivers/axiethernet/src/xaxiethernet.h +++ b/XilinxProcessorIPLib/drivers/axiethernet/src/xaxiethernet.h @@ -457,6 +457,9 @@ * 4.3 adk 29/10/14 - Added support for generating parameters for SGMII/1000BaseX * modes When IP is configured with the PCS/PMA core. * Changes are made in the driver tcl file (CR 828796). +* 4.4 adk 8/1/15 - Fixed TCL errors when axiethernet is configured with the +* Axi stream fifo (CR 835605). Changes are made in the +* driver tcl file. * * ******************************************************************************/