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 | |
Konstantin Porotchkin | d973c03 | 2018-10-02 17:45:15 +0300 | [diff] [blame] | 23 | PLAT_INCLUDES += -I. -Iinclude/common -Iinclude/common/tbbr \ |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 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 \ |
Konstantin Porotchkin | d973c03 | 2018-10-02 17:45:15 +0300 | [diff] [blame] | 49 | common/desc_image_load.c \ |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 50 | $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \ |
Konstantin Porotchkin | d973c03 | 2018-10-02 17:45:15 +0300 | [diff] [blame] | 51 | $(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 Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 55 | |
| 56 | BL31_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 |
| 67 | ifeq (${MSS_SUPPORT}, 1) |
| 68 | include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk |
| 69 | endif |
| 70 | |
| 71 | fip: mrvl_flash |