]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(gicv3): enlarge the range for intr_num of structure interrupt_prop_t
authorMing Huang <huangming@linux.alibaba.com>
Wed, 1 Feb 2023 06:03:44 +0000 (14:03 +0800)
committerMing Huang <huangming@linux.alibaba.com>
Mon, 6 Feb 2023 05:48:11 +0000 (13:48 +0800)
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

docs/design/firmware-design.rst
include/common/interrupt_props.h

index 84bba18e6be62d8db5535a63dd8a6c5a809b5851..65aa4a63c109f55acb5d592d9e7faef6a9eec0a4 100644 (file)
@@ -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,
 
index 07bafaae546eab4547ce97653aca36c39b58cafa..681c896876845c2697fc3e19e74c428ed3677b97 100644 (file)
@@ -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;