Skip to content

Commit

Permalink
adi_board: Fixup sys_zynq scope and if indent
Browse files Browse the repository at this point in the history
The variable sys_zynq is a global var.
Line breaks matter in TCL.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Sep 4, 2024
1 parent bf1b577 commit 398b4b4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions projects/scripts/adi_board.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1175,11 +1175,19 @@ proc ad_hpmx_interconnect {p_sel p_address p_name {p_intf_name {}}} {
#
proc ad_cpu_interconnect {p_address p_name {p_intf_name {}}} {

if {$sys_zynq == -1} {ad_hpmx_interconnect "AXI" $p_address $p_name $p_intf_name}
elseif {$sys_zynq == 0} {ad_hpmx_interconnect "DP" $p_address $p_name $p_intf_name}
elseif {$sys_zynq == 1} {ad_hpmx_interconnect "GP0" $p_address $p_name $p_intf_name}
elseif {$sys_zynq == 2} {ad_hpmx_interconnect "HPM0_LPD" $p_address $p_name $p_intf_name}
elseif {$sys_zynq == 3} {ad_hpmx_interconnect "FPD" $p_address $p_name $p_intf_name}
global sys_zynq

if {$sys_zynq == -1} {
ad_hpmx_interconnect "AXI" $p_address $p_name $p_intf_name
} elseif {$sys_zynq == 0} {
ad_hpmx_interconnect "DP" $p_address $p_name $p_intf_name
} elseif {$sys_zynq == 1} {
ad_hpmx_interconnect "GP0" $p_address $p_name $p_intf_name
} elseif {$sys_zynq == 2} {
ad_hpmx_interconnect "HPM0_LPD" $p_address $p_name $p_intf_name
} elseif {$sys_zynq == 3} {
ad_hpmx_interconnect "FPD" $p_address $p_name $p_intf_name
}
}

## Connects an IP interrupt port to the system's interrupt controller interface.
Expand Down

0 comments on commit 398b4b4

Please sign in to comment.