blob: 1d754d98083fe08a2aab7bc97bf39a4b384128f8 [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 +010013override ENABLE_PIE := 1
14BL32_CFLAGS += -fpie -DENABLE_PIE
15BL32_LDFLAGS += $(PIE_LDFLAGS)
Yann Gautier5bda08b2022-02-09 14:03:35 +010016
Etienne Carriere7ad2c012019-12-08 08:14:03 +010017BL32_CFLAGS += -DSTM32MP_SHARED_RESOURCES
18
Etienne Carrieree96162e2020-04-10 11:32:54 +020019BL32_SOURCES += drivers/st/etzpc/etzpc.c \
20 plat/common/aarch32/platform_mp_stack.S \
Yann Gautier9d135e42018-07-16 19:36:06 +020021 plat/st/stm32mp1/sp_min/sp_min_setup.c \
22 plat/st/stm32mp1/stm32mp1_pm.c \
Etienne Carriere7ad2c012019-12-08 08:14:03 +010023 plat/st/stm32mp1/stm32mp1_shared_resources.c \
Yann Gautier9d135e42018-07-16 19:36:06 +020024 plat/st/stm32mp1/stm32mp1_topology.c
Etienne Carrieree96162e2020-04-10 11:32:54 +020025
Yann Gautier0dc92312021-10-29 17:04:17 +020026# FDT wrappers
27include common/fdt_wrappers.mk
28BL32_SOURCES += ${FDT_WRAPPERS_SOURCES}
29
Yann Gautier9d135e42018-07-16 19:36:06 +020030# Generic GIC v2
Yann Gautierd5018102020-08-07 09:48:30 +020031include drivers/arm/gic/v2/gicv2.mk
32
33BL32_SOURCES += ${GICV2_SOURCES} \
Yann Gautier9d135e42018-07-16 19:36:06 +020034 plat/common/plat_gicv2.c \
35 plat/st/stm32mp1/stm32mp1_gic.c
36
37# Generic PSCI
38BL32_SOURCES += plat/common/plat_psci_common.c
Yann Gautier05be8d82019-01-17 14:51:25 +010039
Etienne Carriere34f0e932020-07-16 17:36:18 +020040# SCMI server drivers
Peng Fan8053e072021-01-20 11:04:08 +080041BL32_SOURCES += drivers/scmi-msg/base.c \
42 drivers/scmi-msg/clock.c \
43 drivers/scmi-msg/entry.c \
44 drivers/scmi-msg/reset_domain.c \
45 drivers/scmi-msg/smt.c
Etienne Carriere34f0e932020-07-16 17:36:18 +020046
Yann Gautier05be8d82019-01-17 14:51:25 +010047# stm32mp1 specific services
Yann Gautier52448ab2019-01-17 14:53:24 +010048BL32_SOURCES += plat/st/stm32mp1/services/bsec_svc.c \
Etienne Carriere34f0e932020-07-16 17:36:18 +020049 plat/st/stm32mp1/services/stm32mp1_svc_setup.c \
50 plat/st/stm32mp1/stm32mp1_scmi.c
Etienne Carriere196c2ac2020-06-23 09:26:15 +020051
52# Arm Archtecture services
53BL32_SOURCES += services/arm_arch_svc/arm_arch_svc_setup.c