osd : added common namespace to all common tcl commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
This commit is contained in:
parent
cc0cc16f89
commit
cd25bef909
1 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
|
||||||
|
|
||||||
# Get the names of all the peripherals connected to this driver
|
# Get the names of all the peripherals connected to this driver
|
||||||
foreach periph $periphs {
|
foreach periph $periphs {
|
||||||
set peripheral_name [string toupper [get_property NAME $periph]]
|
set peripheral_name [string toupper [common::get_property NAME $periph]]
|
||||||
lappend peripherals $peripheral_name
|
lappend peripherals $peripheral_name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
|
||||||
|
|
||||||
set i 0
|
set i 0
|
||||||
foreach periph $periphs {
|
foreach periph $periphs {
|
||||||
set periph_name [string toupper [get_property NAME $periph]]
|
set periph_name [string toupper [common::get_property NAME $periph]]
|
||||||
|
|
||||||
# Generate canonical definitions only for the peripherals whose
|
# Generate canonical definitions only for the peripherals whose
|
||||||
# canonical name is not the same as hardware instance name
|
# canonical name is not the same as hardware instance name
|
||||||
|
@ -106,7 +106,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
|
||||||
# set rvalue [::hsi::utils::get_ip_param_name $periph $arg]
|
# set rvalue [::hsi::utils::get_ip_param_name $periph $arg]
|
||||||
|
|
||||||
# The rvalue set below is the actual value of the parameter
|
# The rvalue set below is the actual value of the parameter
|
||||||
set rvalue [get_property CONFIG.$arg $periph]
|
set rvalue [common::get_property CONFIG.$arg $periph]
|
||||||
if {[llength $rvalue] == 0} {
|
if {[llength $rvalue] == 0} {
|
||||||
set rvalue 0
|
set rvalue 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue