blob: c3fc2cb39c9a054d12b8a464bf81bd38ba60a646 [file] [log] [blame]
Yann Gautier9d135e42018-07-16 19:36:06 +02001#
Yann Gautier5bda08b2022-02-09 14:03:35 +01002# Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved.
Yann Gautier9d135e42018-07-16 19:36:06 +02003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Sebastien Pasdeloup94389ef2020-12-18 11:50:40 +01007ifeq ($(STM32MP13),1)
8$(error "SP_min is not supported on STM32MP13 platform")
9endif
10
Yann Gautier9d135e42018-07-16 19:36:06 +020011SP_MIN_WITH_SECURE_FIQ := 1
12
Yann Gautier5bda08b2022-02-09 14:03:35 +010013ifneq ($(STM32MP_USE_STM32IMAGE),1)
14override ENABLE_PIE := 1
15BL32_CFLAGS += -fpie -DENABLE_PIE
16BL32_LDFLAGS += $(PIE_LDFLAGS)
17endif
18
Etienne Carriere7ad2c012019-12-08 08:14:03 +010019BL32_CFLAGS += -DSTM32MP_SHARED_RESOURCES
20
Etienne Carrieree96162e2020-04-10 11:32:54 +020021BL32_SOURCES += drivers/st/etzpc/etzpc.c \
22 plat/common/aarch32/platform_mp_stack.S \
Yann Gautier9d135e42018-07-16 19:36:06 +020023 plat/st/stm32mp1/sp_min/sp_min_setup.c \
24 plat/st/stm32mp1/stm32mp1_pm.c \
Etienne Carriere7ad2c012019-12-08 08:14:03 +010025 plat/st/stm32mp1/stm32mp1_shared_resources.c \
Yann Gautier9d135e42018-07-16 19:36:06 +020026 plat/st/stm32mp1/stm32mp1_topology.c
Etienne Carrieree96162e2020-04-10 11:32:54 +020027
Yann Gautier0dc92312021-10-29 17:04:17 +020028# FDT wrappers
29include common/fdt_wrappers.mk
30BL32_SOURCES += ${FDT_WRAPPERS_SOURCES}
31
Yann Gautier9d135e42018-07-16 19:36:06 +020032# Generic GIC v2
Yann Gautierd5018102020-08-07 09:48:30 +020033include drivers/arm/gic/v2/gicv2.mk
34
35BL32_SOURCES += ${GICV2_SOURCES} \
Yann Gautier9d135e42018-07-16 19:36:06 +020036 plat/common/plat_gicv2.c \
37 plat/st/stm32mp1/stm32mp1_gic.c
38
39# Generic PSCI
40BL32_SOURCES += plat/common/plat_psci_common.c
Yann Gautier05be8d82019-01-17 14:51:25 +010041
Etienne Carriere34f0e932020-07-16 17:36:18 +020042# SCMI server drivers
Peng Fan8053e072021-01-20 11:04:08 +080043BL32_SOURCES += drivers/scmi-msg/base.c \
44 drivers/scmi-msg/clock.c \
45 drivers/scmi-msg/entry.c \
46 drivers/scmi-msg/reset_domain.c \
47 drivers/scmi-msg/smt.c
Etienne Carriere34f0e932020-07-16 17:36:18 +020048
Yann Gautier05be8d82019-01-17 14:51:25 +010049# stm32mp1 specific services
Yann Gautier52448ab2019-01-17 14:53:24 +010050BL32_SOURCES += plat/st/stm32mp1/services/bsec_svc.c \
Etienne Carriere34f0e932020-07-16 17:36:18 +020051 plat/st/stm32mp1/services/stm32mp1_svc_setup.c \
52 plat/st/stm32mp1/stm32mp1_scmi.c
Etienne Carriere196c2ac2020-06-23 09:26:15 +020053
54# Arm Archtecture services
55BL32_SOURCES += services/arm_arch_svc/arm_arch_svc_setup.c