lwip: export proper interrupt ID for emaclite.
This patch fixes the issue of wrong interrupt being get exported to the xemacltie_topolgy_g.c file in the lwip. Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com> Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
parent
f9d31bfeb7
commit
7275cde4b3
1 changed files with 1 additions and 11 deletions
12
ThirdParty/sw_services/lwip140/data/lwip140.tcl
vendored
12
ThirdParty/sw_services/lwip140/data/lwip140.tcl
vendored
|
@ -797,17 +797,7 @@ proc update_emaclite_topology {emac processor topologyvar} {
|
|||
set topology(intc_baseaddr) [get_property CONFIG.C_BASEADDR $intc_handle]
|
||||
|
||||
# find interrupt pin number
|
||||
set num_intr_inputs [get_property CONFIG.C_NUM_INTR_INPUTS $intc_handle]
|
||||
set signals [split [get_property VALUE $intr_port] "&"]
|
||||
set i 1
|
||||
foreach signal $signals {
|
||||
set signal [string trim $signal]
|
||||
if {[string compare -nocase $signal $emac_intr_port] == 0} {
|
||||
set topology(emac_intr_id) [expr ($num_intr_inputs - $i)]
|
||||
break
|
||||
}
|
||||
incr i
|
||||
}
|
||||
set topology(emac_intr_id) [xget_port_interrupt_id $emac $emac_intr_port]
|
||||
set topology(scugic_baseaddr) "0x0"
|
||||
set topology(scugic_emac_intr) "0x0"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue