AR# 51791

Zynq-7000, GIC - How can I set the interrupt priority?

Description

How can I set the interrupt priority for each IRQ ID#?
 
The registers ICDIPR0 - 23 are found in TRM but there is no detail.

Solution

ICDIPRx registers consist of four 8bit fields.

Each field is associated with each IRQ ID#0 - 95.

ICDIPR0 Byte0([7:0]) - IRQ ID#0,
ICDIPR0 Byte1([15:8]) - IRQ ID#2,
ICDIPR0 Byte3([23:16]) - IRQ ID#3,
.
.
.

For more detail, refer to the ARM Document below:
 
IHI0048B_gic_architecture_specification.pdf
4.3.11 Interrupt Priority Registers, GICD_IPRIORITYRn

AR# 51791
Date 11/25/2014
Status Active
Type General Article
Devices
Tools