Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 1 | # Copyright (C) 2018 Marvell International Ltd. |
| 2 | # |
| 3 | # SPDX-License-Identifier: BSD-3-Clause |
| 4 | # https://spdx.org/licenses |
| 5 | |
| 6 | MARVELL_PLAT_BASE := plat/marvell |
| 7 | MARVELL_PLAT_INCLUDE_BASE := include/plat/marvell |
| 8 | |
| 9 | include $(MARVELL_PLAT_BASE)/version.mk |
| 10 | include $(MARVELL_PLAT_BASE)/marvell.mk |
| 11 | |
| 12 | VERSION_STRING +=(Marvell-${SUBVERSION}) |
| 13 | |
| 14 | SEPARATE_CODE_AND_RODATA := 1 |
| 15 | |
| 16 | # flag to switch from PLL to ARO |
| 17 | ARO_ENABLE := 0 |
| 18 | $(eval $(call add_define,ARO_ENABLE)) |
| 19 | # Enable/Disable LLC |
| 20 | LLC_ENABLE := 1 |
| 21 | $(eval $(call add_define,LLC_ENABLE)) |
| 22 | |
| 23 | PLAT_INCLUDES += -I. -Iinclude/common/tbbr \ |
| 24 | -I$(MARVELL_PLAT_INCLUDE_BASE)/common \ |
| 25 | -I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64 |
| 26 | |
| 27 | |
| 28 | PLAT_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 | |
| 33 | BL1_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 | |
| 41 | ifdef EL3_PAYLOAD_BASE |
| 42 | # Need the arm_program_trusted_mailbox() function to release secondary CPUs from |
| 43 | # their holding pen |
| 44 | endif |
| 45 | |
| 46 | BL2_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 | |
| 52 | BL31_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 |
| 63 | ifeq (${MSS_SUPPORT}, 1) |
| 64 | include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk |
| 65 | endif |
| 66 | |
| 67 | fip: mrvl_flash |