iomodule: Fix for iomodule without external interrupts

This patch updates the iomodule tcl to handle, if iomodule doesn't
have interrupts enabled and also updates the canonical defines for
iomodule GPO*,INTC_LEVEL_EDGE,INTC_POSITIVE.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
This commit is contained in:
Naga Sureshkumar Relli 2015-08-21 09:34:26 +05:30 committed by Nava kishore Manne
parent fed11b878a
commit 614884ae86
2 changed files with 17 additions and 3 deletions

View file

@ -40,7 +40,10 @@
# Modified generate proc to get canonical defintions
# in xparameters.h.
# 2.2 nsk 07/08/15 Updated iomodule_define_vector_table to handle
# External vector interrupts.
# External vector interrupts CR#871572.
# 2.2 nsk 19/08/15 Modified iomodule_defince_vector_table
# to handle, if iomodule doesn't have interrupts
# enabled CR#876507.
#
##############################################################################
@ -154,6 +157,7 @@ proc generate {drv_handle} {
iomodule_define_config_file $drv_handle $periphs $config_inc
close $config_inc
set all_params [concat $all_params $params]
xdefine_canonical_xpars $drv_handle "xparameters.h" "IOModule" $all_params
}
@ -315,7 +319,7 @@ proc iomodule_define_vector_table {periph config_inc config_file} {
set num_intr_inputs [common::get_property CONFIG.C_INTC_INTR_SIZE $periph]
#calculate the total interrupt sources
set total_intr_ports [::hsi::utils::get_connected_pin_count $interrupt_pin]
set total_intr_ports [get_num_intr_internal $periph]
if {$num_intr_inputs != $total_intr_ports} {
puts "WARNING: Num intr inputs $num_intr_inputs not the \
same as length of ::hsi::utils::get_interrupt_sources [llength \
@ -422,7 +426,7 @@ proc xdefine_canonical_xpars {drv_handle file_name drv_string args} {
set rvalue [format "%.0f" $rvalue]
set rvalue [format "0x%08X" $rvalue]
} else {
set lvalue [hsi::utils::get_driver_param_name $canonical_name $arg]
set lvalue [hsi::utils::get_driver_param_name $canonical_name [string toupper $arg]]
# The commented out rvalue is the name of the instance-specific constant
# set rvalue [::hsi::utils::get_ip_param_name $periph $arg]
# The rvalue set below is the actual value of the parameter

View file

@ -218,10 +218,20 @@
* 1.02a sa 07/25/12 Updated with GPI interrupts and programmable baudrate
* 2.0 adk 19/12/13 Updated as per the New Tcl API's
* 2.1 bss 05/02/14 Added PitMask in XIOModule_Config.(CR #794167)
* 2.2 nsk 07/21/15 Updated iomodule_define_vector_table by removing
* absoluted hsi commands like xget_handle.CR#865544.
* modified generate proc to get canonical defintions
* in xparameters.h
* 2.2 nsk 08/06/15 Updated XIOModule_Uart_InterruptHandler function
* in xiomodule_uart_intr.c file to read Status register
* instead of reading Interrupt Pending register.
* (CR #862715).
* 2.2 nsk 08/07/15 Updated iomodule_define_vector_table in iomodule.tcl
* to handle External vector interrupts.(CR #871572)
* 2.2 nsk 08/19/15 Modifed iomodule_define_vector_table in iomodule.tcl
* to handle,if iomodule doesn't have interrupts enabled
* (CR #876507).
*
* </pre>
*
******************************************************************************/