
Wall Data: Originally submitted from RDI_heeran_MY_RDI_EXP3 Build Type: none Test Types: pre-commits, gui pre-commits [git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 886370]
15 lines
575 B
Tcl
Executable file
15 lines
575 B
Tcl
Executable file
proc generate {drv_handle} {
|
|
set slave [get_cells $drv_handle]
|
|
set qspi_mode [get_ip_param_value $slave "C_QSPI_MODE"]
|
|
if { $qspi_mode == 2} {
|
|
set is_dual 1
|
|
} else {
|
|
set is_dual 0
|
|
}
|
|
set_property CONFIG.is-dual $is_dual $drv_handle
|
|
|
|
set primary_flash [hsm::utils::add_new_child_node $drv_handle "primary_flash"]
|
|
hsm::utils::add_new_property $primary_flash "dtg.device_type" string "ps7-qspi"
|
|
hsm::utils::add_new_property $primary_flash reg hexint 0
|
|
hsm::utils::add_new_property $primary_flash spi-max-frequency int 50000000
|
|
}
|