blob: a1282619582faafae4ce398da2c9d1d75746c8fc [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
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020014MULTI_CONSOLE_API := 1
15
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030016SEPARATE_CODE_AND_RODATA := 1
17
18# flag to switch from PLL to ARO
19ARO_ENABLE := 0
20$(eval $(call add_define,ARO_ENABLE))
21# Enable/Disable LLC
22LLC_ENABLE := 1
23$(eval $(call add_define,LLC_ENABLE))
24
Antonio Nino Diaz50a4d1a2019-02-01 12:22:22 +000025PLAT_INCLUDES += -I$(MARVELL_PLAT_INCLUDE_BASE)/common \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030026 -I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64
27
28
29PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \
30 lib/xlat_tables/aarch64/xlat_tables.c \
31 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_common.c \
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020032 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_helpers.S \
33 $(MARVELL_COMMON_BASE)/marvell_console.c
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030034
35BL1_SOURCES += drivers/delay_timer/delay_timer.c \
36 drivers/io/io_fip.c \
37 drivers/io/io_memmap.c \
38 drivers/io/io_storage.c \
39 $(MARVELL_PLAT_BASE)/common/marvell_bl1_setup.c \
40 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
41 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c
42
43ifdef EL3_PAYLOAD_BASE
44# Need the arm_program_trusted_mailbox() function to release secondary CPUs from
45# their holding pen
46endif
47
48BL2_SOURCES += drivers/io/io_fip.c \
49 drivers/io/io_memmap.c \
50 drivers/io/io_storage.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030051 common/desc_image_load.c \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030052 $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030053 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
54 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_bl2_mem_params_desc.c \
55 $(MARVELL_PLAT_BASE)/common/marvell_image_load.c
56
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030057
58BL31_SOURCES += $(MARVELL_PLAT_BASE)/common/marvell_bl31_setup.c \
59 $(MARVELL_PLAT_BASE)/common/marvell_pm.c \
60 $(MARVELL_PLAT_BASE)/common/marvell_topology.c \
61 plat/common/plat_psci_common.c \
62 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c \
63 drivers/delay_timer/delay_timer.c
64
65# PSCI functionality
66$(eval $(call add_define,CONFIG_ARM64))
67
68# MSS (SCP) build
69ifeq (${MSS_SUPPORT}, 1)
70include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk
71endif
72
73fip: mrvl_flash