Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 1 | # |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 2 | # Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 5 | # |
| 6 | |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 7 | |
| 8 | # By default, SCP images are needed by CSS platforms. |
| 9 | CSS_LOAD_SCP_IMAGES ?= 1 |
| 10 | |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 11 | PLAT_INCLUDES += -Iinclude/plat/arm/css/common \ |
| 12 | -Iinclude/plat/arm/css/common/aarch64 |
| 13 | |
| 14 | |
Yatharth Kochar | 2694cba | 2016-11-14 12:00:41 +0000 | [diff] [blame] | 15 | PLAT_BL_COMMON_SOURCES += plat/arm/css/common/${ARCH}/css_helpers.S |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 16 | |
Yatharth Kochar | 6089af0 | 2015-10-11 15:03:51 +0100 | [diff] [blame] | 17 | BL1_SOURCES += plat/arm/css/common/css_bl1_setup.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 18 | |
| 19 | BL2_SOURCES += plat/arm/css/common/css_bl2_setup.c \ |
Soby Mathew | 200fffd | 2016-10-21 11:34:59 +0100 | [diff] [blame] | 20 | plat/arm/css/drivers/scpi/css_mhu.c \ |
| 21 | plat/arm/css/drivers/scpi/css_scpi.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 22 | |
Yatharth Kochar | 3a11eda | 2015-10-14 15:28:11 +0100 | [diff] [blame] | 23 | BL2U_SOURCES += plat/arm/css/common/css_bl2u_setup.c \ |
Soby Mathew | 200fffd | 2016-10-21 11:34:59 +0100 | [diff] [blame] | 24 | plat/arm/css/drivers/scpi/css_mhu.c \ |
| 25 | plat/arm/css/drivers/scpi/css_scpi.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 26 | |
Soby Mathew | 200fffd | 2016-10-21 11:34:59 +0100 | [diff] [blame] | 27 | BL31_SOURCES += plat/arm/css/common/css_pm.c \ |
| 28 | plat/arm/css/common/css_topology.c \ |
| 29 | plat/arm/css/drivers/scp/css_pm_scpi.c \ |
| 30 | plat/arm/css/drivers/scpi/css_mhu.c \ |
| 31 | plat/arm/css/drivers/scpi/css_scpi.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 32 | |
| 33 | ifneq (${RESET_TO_BL31},0) |
Juan Castillo | 7d19941 | 2015-12-14 09:35:25 +0000 | [diff] [blame] | 34 | $(error "Using BL31 as the reset vector is not supported on CSS platforms. \ |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 35 | Please set RESET_TO_BL31 to 0.") |
| 36 | endif |
| 37 | |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 38 | # Process CSS_LOAD_SCP_IMAGES flag |
| 39 | $(eval $(call assert_boolean,CSS_LOAD_SCP_IMAGES)) |
| 40 | $(eval $(call add_define,CSS_LOAD_SCP_IMAGES)) |
| 41 | |
| 42 | ifeq (${CSS_LOAD_SCP_IMAGES},1) |
Masahiro Yamada | e76b4f8 | 2017-04-05 19:11:41 +0900 | [diff] [blame] | 43 | NEED_SCP_BL2 := yes |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 44 | ifneq (${TRUSTED_BOARD_BOOT},0) |
| 45 | $(eval $(call FWU_FIP_ADD_IMG,SCP_BL2U,--scp-fwu-cfg)) |
| 46 | endif |
| 47 | |
| 48 | BL2U_SOURCES += plat/arm/css/common/css_scp_bootloader.c |
| 49 | BL2_SOURCES += plat/arm/css/common/css_scp_bootloader.c |
| 50 | endif |
Sandrine Bailleux | 7da652d | 2015-04-13 11:47:48 +0100 | [diff] [blame] | 51 | |
| 52 | # Enable option to detect whether the SCP ROM firmware in use predates version |
| 53 | # 1.7.0 and therefore, is incompatible. |
| 54 | CSS_DETECT_PRE_1_7_0_SCP := 1 |
| 55 | |
| 56 | # Process CSS_DETECT_PRE_1_7_0_SCP flag |
| 57 | $(eval $(call assert_boolean,CSS_DETECT_PRE_1_7_0_SCP)) |
| 58 | $(eval $(call add_define,CSS_DETECT_PRE_1_7_0_SCP)) |