blob: 3ee2f3dba721cbd197e16aadd43c9089a9e89ad5 [file] [log] [blame]
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +03001# Copyright (C) 2018 Marvell International Ltd.
2#
3# SPDX-License-Identifier: BSD-3-Clause
4# https://spdx.org/licenses
5
6MARVELL_PLAT_BASE := plat/marvell
7MARVELL_PLAT_INCLUDE_BASE := include/plat/marvell
8
9include $(MARVELL_PLAT_BASE)/version.mk
10include $(MARVELL_PLAT_BASE)/marvell.mk
11
12VERSION_STRING +=(Marvell-${SUBVERSION})
13
14SEPARATE_CODE_AND_RODATA := 1
15
16# flag to switch from PLL to ARO
17ARO_ENABLE := 0
18$(eval $(call add_define,ARO_ENABLE))
19# Enable/Disable LLC
20LLC_ENABLE := 1
21$(eval $(call add_define,LLC_ENABLE))
22
23PLAT_INCLUDES += -I. -Iinclude/common/tbbr \
24 -I$(MARVELL_PLAT_INCLUDE_BASE)/common \
25 -I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64
26
27
28PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \
29 lib/xlat_tables/aarch64/xlat_tables.c \
30 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_common.c \
31 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_helpers.S
32
33BL1_SOURCES += drivers/delay_timer/delay_timer.c \
34 drivers/io/io_fip.c \
35 drivers/io/io_memmap.c \
36 drivers/io/io_storage.c \
37 $(MARVELL_PLAT_BASE)/common/marvell_bl1_setup.c \
38 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
39 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c
40
41ifdef EL3_PAYLOAD_BASE
42# Need the arm_program_trusted_mailbox() function to release secondary CPUs from
43# their holding pen
44endif
45
46BL2_SOURCES += drivers/io/io_fip.c \
47 drivers/io/io_memmap.c \
48 drivers/io/io_storage.c \
49 $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \
50 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c
51
52BL31_SOURCES += $(MARVELL_PLAT_BASE)/common/marvell_bl31_setup.c \
53 $(MARVELL_PLAT_BASE)/common/marvell_pm.c \
54 $(MARVELL_PLAT_BASE)/common/marvell_topology.c \
55 plat/common/plat_psci_common.c \
56 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c \
57 drivers/delay_timer/delay_timer.c
58
59# PSCI functionality
60$(eval $(call add_define,CONFIG_ARM64))
61
62# MSS (SCP) build
63ifeq (${MSS_SUPPORT}, 1)
64include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk
65endif
66
67fip: mrvl_flash