Skip to content

Commit

Permalink
Disable pcie node in dts if it is endpoint device
Browse files Browse the repository at this point in the history
If psu_pcie is configured as endpoint device, then don't enable the
pcie node. But for root port there is no change.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Acked-by: Bharat kumar <bharatku@xilinx.com>
  • Loading branch information
Naga Sureshkumar Relli committed Nov 10, 2016
1 parent 4aeb1f1 commit 9cb1a82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions device_tree/data/common_proc.tcl
Expand Up @@ -1604,6 +1604,13 @@ proc gen_peripheral_nodes {drv_handle {node_only ""}} {
# TODO: more ignore ip list?
set ip_type [get_property IP_NAME $ip]
set ignore_list "lmb_bram_if_cntlr"
if {[string match -nocase $ip_type "psu_pcie"]} {
set pcie_config [get_property CONFIG.C_PCIE_MODE [get_cells -hier $drv_handle]]
if {[string match -nocase $pcie_config "Endpoint Device"]} {
lappend ignore_list $ip_type
}
}

if {[lsearch $ignore_list $ip_type] >= 0 \
} {
return 0
Expand Down

0 comments on commit 9cb1a82

Please sign in to comment.