blob: 5c8e804f2046b88541f88ada913d231b7104b245 [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
Antonio Nino Diaz50a4d1a2019-02-01 12:22:22 +000023PLAT_INCLUDES += -I$(MARVELL_PLAT_INCLUDE_BASE)/common \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030024 -I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64
25
26
27PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \
28 lib/xlat_tables/aarch64/xlat_tables.c \
29 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_common.c \
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020030 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_helpers.S \
31 $(MARVELL_COMMON_BASE)/marvell_console.c
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030032
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 \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030049 common/desc_image_load.c \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030050 $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030051 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
52 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_bl2_mem_params_desc.c \
53 $(MARVELL_PLAT_BASE)/common/marvell_image_load.c
54
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030055
56BL31_SOURCES += $(MARVELL_PLAT_BASE)/common/marvell_bl31_setup.c \
57 $(MARVELL_PLAT_BASE)/common/marvell_pm.c \
58 $(MARVELL_PLAT_BASE)/common/marvell_topology.c \
59 plat/common/plat_psci_common.c \
60 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c \
61 drivers/delay_timer/delay_timer.c
62
63# PSCI functionality
64$(eval $(call add_define,CONFIG_ARM64))
65
66# MSS (SCP) build
67ifeq (${MSS_SUPPORT}, 1)
68include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk
69endif
70
71fip: mrvl_flash