embeddedsw/XilinxProcessorIPLib/linux_drivers/iicps/data/iicps.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

10 lines
371 B
Tcl
Executable file

proc generate {drv_handle} {
set i2c_count [hsm::utils::get_os_parameter_value "i2c_count"]
if { [llength $i2c_count] == 0 } {
set i2c_count 0
}
set_property CONFIG.bus-id "$i2c_count" $drv_handle
incr i2c_count
hsm::utils::set_os_parameter_value "i2c_count" $i2c_count
set i2c_count [hsm::utils::get_os_parameter_value "i2c_count"]
}