embeddedsw/XilinxProcessorIPLib/linux_drivers/usbps/data/usbps.tcl
git perforce import user a539aa2c1a Initial import of //Rodin/HEAD/data/embeddedsw/ from the state at revision #head
[git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 884492]
2014-04-09 17:06:57 +05:30

11 lines
342 B
Tcl
Executable file

proc generate {drv_handle} {
set ip [get_cells $drv_handle]
set value [get_property CONFIG.C_USB_RESET $ip]
if { [llength $value] } {
regsub -all "MIO" $value "" value
if { $value != "-1" && [llength $value] !=0 } {
set_property CONFIG.usb-reset "ps7_gpio_0 $value 0" $drv_handle
}
}
}