- Migrate to new GIC interfaces.
- Remove references to removed build options.
Change-Id: I6f90a33d5438a9d7b71be3f93e8d9da278c8c6e6
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
${LS1043_SECURITY_SOURCES}
# Disable the PSCI platform compatibility layer
-ENABLE_PLAT_COMPAT := 0
MULTI_CONSOLE_API := 1
# Enable workarounds for selected Cortex-A53 erratas.
#include <assert.h>
#include <bl_common.h>
#include <console.h>
-#include <mmio.h>
#include <gicv2.h>
+#include <interrupt_props.h>
+#include <mmio.h>
+
#include "ls_16550.h"
#include "plat_ls.h"
#include "soc.h"
static entry_point_info_t bl32_image_ep_info;
static entry_point_info_t bl33_image_ep_info;
-const unsigned int g0_interrupt_array1[] = {
- 9
+static const interrupt_prop_t g0_interrupt_props[] = {
+ INTR_PROP_DESC(9, GIC_HIGHEST_SEC_PRIORITY,
+ GICV2_INTR_GROUP0, GIC_INTR_CFG_LEVEL),
};
gicv2_driver_data_t ls_gic_data = {
.gicd_base = GICD_BASE,
.gicc_base = GICC_BASE,
- .g0_interrupt_num = ARRAY_SIZE(g0_interrupt_array1),
- .g0_interrupt_array = g0_interrupt_array1,
+ .interrupt_props = g0_interrupt_props,
+ .interrupt_props_num = ARRAY_SIZE(g0_interrupt_props),
};
# mapping the former as executable and the latter as execute-never.
SEPARATE_CODE_AND_RODATA := 1
-# Enable new version of image loading on Layerscape platforms
-LOAD_IMAGE_V2 := 1
-
-# Use generic OID definition (tbbr_oid.h)
-USE_TBBR_DEFS := 1
-
-
COLD_BOOT_SINGLE_CPU := 1
PLAT_INCLUDES += -Iinclude/common/tbbr
plat/layerscape/common/ls_topology.c \
plat/layerscape/common/ns_access.c \
plat/common/plat_psci_common.c
-# Verify build config
-# -------------------
-
-ifneq (${LOAD_IMAGE_V2}, 1)
- $(error Error: Layerscape needs LOAD_IMAGE_V2=1)
-endif
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include <gicv2.h>
#include <debug.h>
+#include <gicv2.h>
+#include <interrupt_props.h>
+
#include "ls_16550.h"
#include "plat_ls.h"
#include "soc.h"
#define BL32_END (unsigned long)(&__BL32_END__)
-const unsigned int g0_interrupt_array1[] = {
- 9
+static const interrupt_prop_t g0_interrupt_props[] = {
+ INTR_PROP_DESC(9, GIC_HIGHEST_SEC_PRIORITY,
+ GICV2_INTR_GROUP0, GIC_INTR_CFG_LEVEL),
};
gicv2_driver_data_t ls_gic_data = {
.gicd_base = GICD_BASE,
.gicc_base = GICC_BASE,
- .g0_interrupt_num = ARRAY_SIZE(g0_interrupt_array1),
- .g0_interrupt_array = g0_interrupt_array1,
+ .interrupt_props = g0_interrupt_props,
+ .interrupt_props_num = ARRAY_SIZE(g0_interrupt_props),
};
/*******************************************************************************