blob: f5f0c416eaaed56a1d9f284a281152d04bb89e48 [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
Grzegorz Jaszczyk3039bce2019-11-05 13:14:59 +01006MARVELL_PLAT_BASE := plat/marvell/armada
7MARVELL_PLAT_INCLUDE_BASE := include/plat/marvell/armada
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +03008
Grzegorz Jaszczyk3039bce2019-11-05 13:14:59 +01009include plat/marvell/version.mk
10include plat/marvell/marvell.mk
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030011
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
Remi Pommarel7459e742019-07-14 20:34:28 +020023include lib/xlat_tables_v2/xlat_tables.mk
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
Remi Pommarel7459e742019-07-14 20:34:28 +020029PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030030 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_common.c \
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020031 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_helpers.S \
32 $(MARVELL_COMMON_BASE)/marvell_console.c
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030033
34BL1_SOURCES += drivers/delay_timer/delay_timer.c \
35 drivers/io/io_fip.c \
36 drivers/io/io_memmap.c \
37 drivers/io/io_storage.c \
38 $(MARVELL_PLAT_BASE)/common/marvell_bl1_setup.c \
39 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
40 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c
41
42ifdef EL3_PAYLOAD_BASE
43# Need the arm_program_trusted_mailbox() function to release secondary CPUs from
44# their holding pen
45endif
46
47BL2_SOURCES += drivers/io/io_fip.c \
48 drivers/io/io_memmap.c \
49 drivers/io/io_storage.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030050 common/desc_image_load.c \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030051 $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030052 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
53 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_bl2_mem_params_desc.c \
54 $(MARVELL_PLAT_BASE)/common/marvell_image_load.c
55
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030056
57BL31_SOURCES += $(MARVELL_PLAT_BASE)/common/marvell_bl31_setup.c \
58 $(MARVELL_PLAT_BASE)/common/marvell_pm.c \
59 $(MARVELL_PLAT_BASE)/common/marvell_topology.c \
60 plat/common/plat_psci_common.c \
61 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c \
62 drivers/delay_timer/delay_timer.c
63
64# PSCI functionality
65$(eval $(call add_define,CONFIG_ARM64))
66
67# MSS (SCP) build
68ifeq (${MSS_SUPPORT}, 1)
69include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk
70endif
71
72fip: mrvl_flash