Skip to content

Commit

Permalink
intc: fix interrupt controller num-intr-inputs property value.
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoBrandao committed Sep 10, 2024
1 parent 2673c5e commit 770fcc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intc/data/intc.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
set zocl [get_user_config $common_file -dt_zocl]
pldt append $node compatible "\ \, \"xlnx,xps-intc-1.00.a\""
add_prop $node "#interrupt-cells" 2 int "pl.dtsi"
add_prop $node "#address-cells" 2 int "pl.dtsi"
add_prop $node "interrupt-controller" boolean "pl.dtsi"
set ip [hsi::get_cells -hier $drv_handle]
set num_intr_inputs [get_ip_param_value $ip C_NUM_INTR_INPUTS]
Expand All @@ -49,7 +50,7 @@
add_prop $node "xlnx,kind-of-intr" $kind_of_intr hexint $dts_file 1
if {$zocl} {
set num_intr_inputs "0x20"
set_drv_prop $drv_handle "xlnx,num-intr-inputs" $num_intr_inputs $node int
set_drv_prop_if_empty $drv_handle "xlnx,num-intr-inputs" $num_intr_inputs $node int
} else {
set_drv_conf_prop $drv_handle C_NUM_INTR_INPUTS "xlnx,num-intr-inputs" $node
}
Expand Down

0 comments on commit 770fcc1

Please sign in to comment.