forked from Xilinx/device-tree-xlnx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
axi_usb2_device.tcl
32 lines (30 loc) · 1.11 KB
/
axi_usb2_device.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# (C) Copyright 2014-2015 Xilinx, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
proc generate {drv_handle} {
foreach i [get_sw_cores device_tree] {
set common_tcl_file "[get_property "REPOSITORY" $i]/data/common_proc.tcl"
if {[file exists $common_tcl_file]} {
source $common_tcl_file
break
}
}
set compatible [get_comp_str $drv_handle]
set compatible [append compatible " " "xlnx,usb2-device-4.00.a"]
set_drv_prop $drv_handle compatible "$compatible" stringlist
set ip [get_cells -hier $drv_handle]
set include_dma [get_property CONFIG.C_INCLUDE_DMA $ip]
if { $include_dma eq "1"} {
set_drv_conf_prop $drv_handle C_INCLUDE_DMA xlnx,has-builtin-dma boolean
}
}