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 <appanad@xilinx.com>
This commit is contained in:
Kedareswara rao Appana 2014-10-15 15:59:37 +05:30 committed by Suneel Garapati
parent fd4c714198
commit 1ae85a7367
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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.
* </pre>
*
*****************************************************************************/