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 | |
Konstantin Porotchkin | d8e3957 | 2018-11-14 17:15:08 +0200 | [diff] [blame] | 14 | MULTI_CONSOLE_API := 1 |
| 15 | |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 16 | SEPARATE_CODE_AND_RODATA := 1 |
| 17 | |
| 18 | # flag to switch from PLL to ARO |
| 19 | ARO_ENABLE := 0 |
| 20 | $(eval $(call add_define,ARO_ENABLE)) |
| 21 | # Enable/Disable LLC |
| 22 | LLC_ENABLE := 1 |
| 23 | $(eval $(call add_define,LLC_ENABLE)) |
| 24 | |
Antonio Nino Diaz | 50a4d1a | 2019-02-01 12:22:22 +0000 | [diff] [blame] | 25 | PLAT_INCLUDES += -I$(MARVELL_PLAT_INCLUDE_BASE)/common \ |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 26 | -I$(MARVELL_PLAT_INCLUDE_BASE)/common/aarch64 |
| 27 | |
| 28 | |
| 29 | PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \ |
| 30 | lib/xlat_tables/aarch64/xlat_tables.c \ |
| 31 | $(MARVELL_PLAT_BASE)/common/aarch64/marvell_common.c \ |
Konstantin Porotchkin | d8e3957 | 2018-11-14 17:15:08 +0200 | [diff] [blame] | 32 | $(MARVELL_PLAT_BASE)/common/aarch64/marvell_helpers.S \ |
| 33 | $(MARVELL_COMMON_BASE)/marvell_console.c |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 34 | |
| 35 | BL1_SOURCES += drivers/delay_timer/delay_timer.c \ |
| 36 | drivers/io/io_fip.c \ |
| 37 | drivers/io/io_memmap.c \ |
| 38 | drivers/io/io_storage.c \ |
| 39 | $(MARVELL_PLAT_BASE)/common/marvell_bl1_setup.c \ |
| 40 | $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \ |
| 41 | $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c |
| 42 | |
| 43 | ifdef EL3_PAYLOAD_BASE |
| 44 | # Need the arm_program_trusted_mailbox() function to release secondary CPUs from |
| 45 | # their holding pen |
| 46 | endif |
| 47 | |
| 48 | BL2_SOURCES += drivers/io/io_fip.c \ |
| 49 | drivers/io/io_memmap.c \ |
| 50 | drivers/io/io_storage.c \ |
Konstantin Porotchkin | d973c03 | 2018-10-02 17:45:15 +0300 | [diff] [blame] | 51 | common/desc_image_load.c \ |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 52 | $(MARVELL_PLAT_BASE)/common/marvell_bl2_setup.c \ |
Konstantin Porotchkin | d973c03 | 2018-10-02 17:45:15 +0300 | [diff] [blame] | 53 | $(MARVELL_PLAT_BASE)/common/marvell_io_storage.c \ |
| 54 | $(MARVELL_PLAT_BASE)/common/aarch64/marvell_bl2_mem_params_desc.c \ |
| 55 | $(MARVELL_PLAT_BASE)/common/marvell_image_load.c |
| 56 | |
Konstantin Porotchkin | f69ec58 | 2018-06-07 18:31:14 +0300 | [diff] [blame] | 57 | |
| 58 | BL31_SOURCES += $(MARVELL_PLAT_BASE)/common/marvell_bl31_setup.c \ |
| 59 | $(MARVELL_PLAT_BASE)/common/marvell_pm.c \ |
| 60 | $(MARVELL_PLAT_BASE)/common/marvell_topology.c \ |
| 61 | plat/common/plat_psci_common.c \ |
| 62 | $(MARVELL_PLAT_BASE)/common/plat_delay_timer.c \ |
| 63 | drivers/delay_timer/delay_timer.c |
| 64 | |
| 65 | # PSCI functionality |
| 66 | $(eval $(call add_define,CONFIG_ARM64)) |
| 67 | |
| 68 | # MSS (SCP) build |
| 69 | ifeq (${MSS_SUPPORT}, 1) |
| 70 | include $(MARVELL_PLAT_BASE)/common/mss/mss_common.mk |
| 71 | endif |
| 72 | |
| 73 | fip: mrvl_flash |