blob: 5c8c7db2d751aa58793342ce8205beb149179a46 [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))
Konstantin Porotchkin2ef36a32019-03-31 16:58:11 +030019
20# Convert LLC to secure SRAM
21LLC_SRAM := 0
22$(eval $(call add_define,LLC_SRAM))
23
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030024# Enable/Disable LLC
25LLC_ENABLE := 1
26$(eval $(call add_define,LLC_ENABLE))
27
Remi Pommarel7459e742019-07-14 20:34:28 +020028include lib/xlat_tables_v2/xlat_tables.mk
29
Antonio Nino Diaz50a4d1a2019-02-01 12:22:22 +000030PLAT_INCLUDES += -I$(MARVELL_PLAT_INCLUDE_BASE)/common \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030031 -I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64
32
33
Remi Pommarel7459e742019-07-14 20:34:28 +020034PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS} \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030035 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_common.c \
Konstantin Porotchkind8e39572018-11-14 17:15:08 +020036 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_helpers.S \
37 $(MARVELL_COMMON_BASE)/marvell_console.c
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030038
39BL1_SOURCES += drivers/delay_timer/delay_timer.c \
40 drivers/io/io_fip.c \
41 drivers/io/io_memmap.c \
42 drivers/io/io_storage.c \
43 $(MARVELL_PLAT_BASE)/common/marvell_bl1_setup.c \
44 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
45 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c
46
47ifdef EL3_PAYLOAD_BASE
48# Need the arm_program_trusted_mailbox() function to release secondary CPUs from
49# their holding pen
50endif
51
52BL2_SOURCES += drivers/io/io_fip.c \
53 drivers/io/io_memmap.c \
54 drivers/io/io_storage.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030055 common/desc_image_load.c \
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030056 $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \
Konstantin Porotchkind973c032018-10-02 17:45:15 +030057 $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \
58 $(MARVELL_PLAT_BASE)/common/aarch64/marvell_bl2_mem_params_desc.c \
59 $(MARVELL_PLAT_BASE)/common/marvell_image_load.c
60
Konstantin Porotchkinf69ec582018-06-07 18:31:14 +030061
62BL31_SOURCES += $(MARVELL_PLAT_BASE)/common/marvell_bl31_setup.c \
63 $(MARVELL_PLAT_BASE)/common/marvell_pm.c \
64 $(MARVELL_PLAT_BASE)/common/marvell_topology.c \
65 plat/common/plat_psci_common.c \
66 $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c \
67 drivers/delay_timer/delay_timer.c
68
69# PSCI functionality
70$(eval $(call add_define,CONFIG_ARM64))
71
72# MSS (SCP) build
73ifeq (${MSS_SUPPORT}, 1)
74include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk
75endif
76
77fip: mrvl_flash