From 1ae85a7367a9d64836b72537d0618e210e705c96 Mon Sep 17 00:00:00 2001 From: Kedareswara rao Appana Date: Wed, 15 Oct 2014 15:59:37 +0530 Subject: [PATCH] uart: Incorrect freq value being exported to the xparameters.h file This patch fixes the issue incorrect freq value being exported to the xparameters.h file when uart is configured with external clock. Signed-off-by: Kedareswara rao Appana --- XilinxProcessorIPLib/drivers/uartns550/data/uartns550.tcl | 4 +++- XilinxProcessorIPLib/drivers/uartns550/src/xuartns550.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/uartns550/data/uartns550.tcl b/XilinxProcessorIPLib/drivers/uartns550/data/uartns550.tcl index 7530554b..8fef116f 100755 --- a/XilinxProcessorIPLib/drivers/uartns550/data/uartns550.tcl +++ b/XilinxProcessorIPLib/drivers/uartns550/data/uartns550.tcl @@ -36,6 +36,8 @@ # 3.0 adk 12/10/13 Updated as per the New Tcl API's # 3.1 adk 20/08/14 Fixed CR:816989 Canonical Definition for Multiple # Instances of UARTSNS550 have the same Device Id. +# 3.2 adk 15/10/14 Fixed CR:826435 external clock speed is not +# being updated with proper value in xparametrs.h file. ############################################################################## ## @BEGIN_CHANGELOG EDK_L ## Deprecated the CLOCK_HZ parameter in mdd and updated the Tcl to obtain the @@ -262,7 +264,7 @@ proc xget_freq {periph} { # If the clock frequency can not be obtained from "xin" port, # read the value of the parameter C_EXTERNAL_XIN_CLK_HZ to get # the frequency - if { [llength $freq] == 0 && $use_xin_clk == "1" } { + if { $use_xin_clk == "1" } { set freq [get_property CONFIG.C_EXTERNAL_XIN_CLK_HZ $periph] } return $freq diff --git a/XilinxProcessorIPLib/drivers/uartns550/src/xuartns550.h b/XilinxProcessorIPLib/drivers/uartns550/src/xuartns550.h index 75fac518..3706bd04 100755 --- a/XilinxProcessorIPLib/drivers/uartns550/src/xuartns550.h +++ b/XilinxProcessorIPLib/drivers/uartns550/src/xuartns550.h @@ -157,7 +157,8 @@ * Instances of UARTSNS550 have the same Device Id. * Changes are made in the driver tcl file. * 3.2 adk 15/10/14 Fixed CR:824444 changes are made in the example file -* xuartns550_intr_example.c +* xuartns550_intr_example.c. +* 3.2 adk 15/10/14 Fixed CR:826435 changes are made in the driver tcl file. * * *****************************************************************************/