Browse Source

feat(gicv3): enlarge the range for intr_num of structure interrupt_prop_t

As the max ESPI can be 5119, so enlarge the intr_num range of
structure interrupt_prop_t. After the patch the ESPI can be add to
this macro:
define PLATFORM_G1S_PROPS(grp) \
	INTR_PROP_DESC(197 - 32 + 4576, GIC_HIGHEST_SEC_PRIORITY, (grp), GIC_INTR_CFG_EDGE), \
	INTR_PROP_DESC(199 - 32 + 4576, GIC_HIGHEST_SEC_PRIORITY, (grp), GIC_INTR_CFG_EDGE)

The firmware-design.rst will be updated accordingly.

Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
Change-Id: Ic923868bb1b00c017410dc2aeabfda58ee54782f
pull/1994/head
Ming Huang 2 years ago
parent
commit
d5eee8f3fb
  1. 2
      docs/design/firmware-design.rst
  2. 2
      include/common/interrupt_props.h

2
docs/design/firmware-design.rst

@ -1330,7 +1330,7 @@ element of the array specifies the interrupt number and its attributes
(priority, group, configuration). Each element of the array shall be populated
by the macro ``INTR_PROP_DESC()``. The macro takes the following arguments:
- 10-bit interrupt number,
- 13-bit interrupt number,
- 8-bit interrupt priority,

2
include/common/interrupt_props.h

@ -19,7 +19,7 @@
}
typedef struct interrupt_prop {
unsigned int intr_num:10;
unsigned int intr_num:13;
unsigned int intr_pri:8;
unsigned int intr_grp:2;
unsigned int intr_cfg:2;

Loading…
Cancel
Save