Commit 1ee63b02 authored by Naga Sureshkumar Relli's avatar Naga Sureshkumar Relli
Browse files

Don't hardcode dts file name



Instead of using hardcoded dts file, read it form default
dts config property.
Signed-off-by: default avatarNaga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: default avatarKedareswara rao Appana <appanad@xilinx.com>
parent d6dae87b
......@@ -23,11 +23,12 @@ proc generate {drv_handle} {
ps7_reset_handle $drv_handle CONFIG.C_USB_RESET CONFIG.usb-reset
set proctype [get_property IP_NAME [get_cells -hier [get_sw_processor]]]
set default_dts [set_drv_def_dts $drv_handle]
if {[string match -nocase $proctype "ps7_cortexa9"] } {
set_drv_prop $drv_handle phy_type ulpi string
} else {
set index [string index $drv_handle end]
set rt_node [add_or_get_dt_node -n usb -l usb$index -d "system.dts" -auto_ref_parent]
set rt_node [add_or_get_dt_node -n usb -l usb$index -d $default_dts -auto_ref_parent]
hsi::utils::add_new_dts_param "${rt_node}" "status" "okay" string
}
}
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