embeddedsw/XilinxProcessorIPLib/linux_drivers/qspips/data/qspips.tcl
Heera Nand deddf8a6a6 replaced dts. with dtg. in driver meta data
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]
2014-04-11 16:05:25 +05:30

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
}