Follow these steps to configure the
interrupt controller.
- Set polarity and type of event
through the Interrupt Polarity Registers (ICSS_INTC_POLARITY_REG0 to
ICSS_INTC_POLARITY_REG4) and the Interrupt Type Registers
(ICSS_INTC_POLARITY_REG0 to ICSS_INTC_POLARITY_REG4). Polarity of all interrupts
is always high. Type of all interrupts is always pulse (after the processing
block).
- Map event to INTC channel through
ICSS_INTC_CH_MAP_REGi (where i=0 to 39) channel mapping registers.
- Map channel to host interrupt
through ICSS_INTC_HINT_MAP_REG0 to ICSS_INTC_HINT_MAP_REG4 registers.
Recommended channel “x” to be mapped to host interrupt “x”.
- Clear interrupt by writing 1h to
ICSS_INTC_ENA_STATUS_REG0 to ICSS_INTC_ENA_STATUS_REG4 registers.
- Enable host interrupt by writing
index value to ICSS_INTC_HINT_ENABLE_SET_INDEX_REG register.
- Enable interrupt nesting if
desired.
- Globally enable all interrupts
through register ICSS_INTC_GLOBAL_ENABLE_HINT_REG[0] ENABLE_HINT_ANY bit.