From 9cb1a828d293b73709eca72652b15158313a3d8c Mon Sep 17 00:00:00 2001 From: Naga Sureshkumar Relli Date: Wed, 9 Nov 2016 15:37:50 +0530 Subject: [PATCH] Disable pcie node in dts if it is endpoint device 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 Acked-by: Bharat kumar --- device_tree/data/common_proc.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/device_tree/data/common_proc.tcl b/device_tree/data/common_proc.tcl index b4d00b07..05c4e3a7 100644 --- a/device_tree/data/common_proc.tcl +++ b/device_tree/data/common_proc.tcl @@ -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