Commit be9a7507 authored by Jeenu Viswambharan's avatar Jeenu Viswambharan
Browse files

poplar: Migrate to using interrupt properties



Change-Id: Ibca6ea29be32783de666e0e0a0481668fc11860f
Signed-off-by: default avatarJeenu Viswambharan <jeenu.viswambharan@arm.com>
parent a982f437
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include <arch.h> #include <arch.h>
#include <common_def.h> #include <common_def.h>
#include <gic_common.h>
#include <interrupt_props.h>
#include <tbbr/tbbr_img_def.h> #include <tbbr/tbbr_img_def.h>
#include "hi3798cv200.h" #include "hi3798cv200.h"
#include "poplar_layout.h" /* BL memory region sizes, etc */ #include "poplar_layout.h" /* BL memory region sizes, etc */
...@@ -69,20 +71,34 @@ ...@@ -69,20 +71,34 @@
#define PLAT_ARM_GICD_BASE GICD_BASE #define PLAT_ARM_GICD_BASE GICD_BASE
#define PLAT_ARM_GICC_BASE GICC_BASE #define PLAT_ARM_GICC_BASE GICC_BASE
#define PLAT_ARM_G1S_IRQS HISI_IRQ_SEC_SGI_0, \ #define PLAT_ARM_G1S_IRQ_PROPS(grp) \
HISI_IRQ_SEC_SGI_1, \ INTR_PROP_DESC(HISI_IRQ_SEC_SGI_0, GIC_HIGHEST_SEC_PRIORITY, grp, \
HISI_IRQ_SEC_SGI_2, \ GIC_INTR_CFG_LEVEL), \
HISI_IRQ_SEC_SGI_3, \ INTR_PROP_DESC(HISI_IRQ_SEC_SGI_1, GIC_HIGHEST_SEC_PRIORITY, grp, \
HISI_IRQ_SEC_SGI_4, \ GIC_INTR_CFG_LEVEL), \
HISI_IRQ_SEC_SGI_5, \ INTR_PROP_DESC(HISI_IRQ_SEC_SGI_2, GIC_HIGHEST_SEC_PRIORITY, grp, \
HISI_IRQ_SEC_SGI_6, \ GIC_INTR_CFG_LEVEL), \
HISI_IRQ_SEC_SGI_7, \ INTR_PROP_DESC(HISI_IRQ_SEC_SGI_3, GIC_HIGHEST_SEC_PRIORITY, grp, \
HISI_IRQ_SEC_TIMER0, \ GIC_INTR_CFG_LEVEL), \
HISI_IRQ_SEC_TIMER1, \ INTR_PROP_DESC(HISI_IRQ_SEC_SGI_4, GIC_HIGHEST_SEC_PRIORITY, grp, \
HISI_IRQ_SEC_TIMER2, \ GIC_INTR_CFG_LEVEL), \
HISI_IRQ_SEC_TIMER3, \ INTR_PROP_DESC(HISI_IRQ_SEC_SGI_5, GIC_HIGHEST_SEC_PRIORITY, grp, \
HISI_IRQ_SEC_AXI GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_SGI_6, GIC_HIGHEST_SEC_PRIORITY, grp, \
#define PLAT_ARM_G0_IRQS GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_SGI_7, GIC_HIGHEST_SEC_PRIORITY, grp, \
GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_TIMER0, GIC_HIGHEST_SEC_PRIORITY, grp, \
GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_TIMER1, GIC_HIGHEST_SEC_PRIORITY, grp, \
GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_TIMER2, GIC_HIGHEST_SEC_PRIORITY, grp, \
GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_TIMER3, GIC_HIGHEST_SEC_PRIORITY, grp, \
GIC_INTR_CFG_LEVEL), \
INTR_PROP_DESC(HISI_IRQ_SEC_AXI, GIC_HIGHEST_SEC_PRIORITY, grp, \
GIC_INTR_CFG_LEVEL)
#define PLAT_ARM_G0_IRQ_PROPS(grp)
#endif /* __PLATFORM_DEF_H__ */ #endif /* __PLATFORM_DEF_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment