Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 1 | # |
Masahiro Yamada | cd7711d | 2018-01-26 11:42:01 +0900 | [diff] [blame] | 2 | # Copyright (c) 2015-2018, 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 | |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 11 | # By default, SCMI driver is disabled for CSS platforms |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 12 | CSS_USE_SCMI_SDS_DRIVER ?= 0 |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 13 | |
Antonio Nino Diaz | bd7b740 | 2019-01-25 14:30:04 +0000 | [diff] [blame] | 14 | PLAT_INCLUDES += -Iinclude/plat/arm/css/common/aarch64 |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 15 | |
| 16 | |
Yatharth Kochar | 2694cba | 2016-11-14 12:00:41 +0000 | [diff] [blame] | 17 | PLAT_BL_COMMON_SOURCES += plat/arm/css/common/${ARCH}/css_helpers.S |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 18 | |
Yatharth Kochar | 6089af0 | 2015-10-11 15:03:51 +0100 | [diff] [blame] | 19 | BL1_SOURCES += plat/arm/css/common/css_bl1_setup.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 20 | |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 21 | BL2_SOURCES += plat/arm/css/common/css_bl2_setup.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 22 | |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 23 | BL2U_SOURCES += plat/arm/css/common/css_bl2u_setup.c |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 24 | |
Soby Mathew | 200fffd | 2016-10-21 11:34:59 +0100 | [diff] [blame] | 25 | BL31_SOURCES += plat/arm/css/common/css_pm.c \ |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 26 | plat/arm/css/common/css_topology.c |
| 27 | |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 28 | ifeq (${CSS_USE_SCMI_SDS_DRIVER},0) |
Antonio Nino Diaz | 1b0c6f1 | 2019-01-23 21:08:43 +0000 | [diff] [blame] | 29 | BL31_SOURCES += drivers/arm/css/mhu/css_mhu.c \ |
Antonio Nino Diaz | 326f56b | 2019-01-23 18:55:03 +0000 | [diff] [blame] | 30 | drivers/arm/css/scp/css_pm_scpi.c \ |
| 31 | drivers/arm/css/scpi/css_scpi.c |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 32 | else |
Antonio Nino Diaz | 1b0c6f1 | 2019-01-23 21:08:43 +0000 | [diff] [blame] | 33 | BL31_SOURCES += drivers/arm/css/mhu/css_mhu_doorbell.c \ |
| 34 | drivers/arm/css/scmi/scmi_ap_core_proto.c \ |
Antonio Nino Diaz | c30db5b | 2019-01-23 20:37:32 +0000 | [diff] [blame] | 35 | drivers/arm/css/scmi/scmi_common.c \ |
| 36 | drivers/arm/css/scmi/scmi_pwr_dmn_proto.c \ |
| 37 | drivers/arm/css/scmi/scmi_sys_pwr_proto.c \ |
Antonio Nino Diaz | 326f56b | 2019-01-23 18:55:03 +0000 | [diff] [blame] | 38 | drivers/arm/css/scp/css_pm_scmi.c |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 39 | endif |
Dan Handley | 9df4804 | 2015-03-19 18:58:55 +0000 | [diff] [blame] | 40 | |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 41 | # Process CSS_LOAD_SCP_IMAGES flag |
| 42 | $(eval $(call assert_boolean,CSS_LOAD_SCP_IMAGES)) |
| 43 | $(eval $(call add_define,CSS_LOAD_SCP_IMAGES)) |
| 44 | |
| 45 | ifeq (${CSS_LOAD_SCP_IMAGES},1) |
Masahiro Yamada | e76b4f8 | 2017-04-05 19:11:41 +0900 | [diff] [blame] | 46 | NEED_SCP_BL2 := yes |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 47 | ifneq (${TRUSTED_BOARD_BOOT},0) |
Masahiro Yamada | 9c5ca52 | 2018-01-26 11:42:01 +0900 | [diff] [blame] | 48 | $(eval $(call TOOL_ADD_IMG,scp_bl2u,--scp-fwu-cfg,FWU_)) |
Vikram Kanigiri | 18a1731 | 2016-01-14 14:26:27 +0000 | [diff] [blame] | 49 | endif |
| 50 | |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 51 | ifeq (${CSS_USE_SCMI_SDS_DRIVER},1) |
Antonio Nino Diaz | 326f56b | 2019-01-23 18:55:03 +0000 | [diff] [blame] | 52 | BL2U_SOURCES += drivers/arm/css/scp/css_sds.c \ |
Antonio Nino Diaz | 09d5876 | 2019-01-23 19:06:55 +0000 | [diff] [blame] | 53 | drivers/arm/css/sds/sds.c |
Sandrine Bailleux | 7da652d | 2015-04-13 11:47:48 +0100 | [diff] [blame] | 54 | |
Antonio Nino Diaz | 326f56b | 2019-01-23 18:55:03 +0000 | [diff] [blame] | 55 | BL2_SOURCES += drivers/arm/css/scp/css_sds.c \ |
Antonio Nino Diaz | 09d5876 | 2019-01-23 19:06:55 +0000 | [diff] [blame] | 56 | drivers/arm/css/sds/sds.c |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 57 | else |
Antonio Nino Diaz | 326f56b | 2019-01-23 18:55:03 +0000 | [diff] [blame] | 58 | BL2U_SOURCES += drivers/arm/css/mhu/css_mhu.c \ |
| 59 | drivers/arm/css/scp/css_bom_bootloader.c \ |
| 60 | drivers/arm/css/scpi/css_scpi.c |
Sandrine Bailleux | 7da652d | 2015-04-13 11:47:48 +0100 | [diff] [blame] | 61 | |
Antonio Nino Diaz | 326f56b | 2019-01-23 18:55:03 +0000 | [diff] [blame] | 62 | BL2_SOURCES += drivers/arm/css/mhu/css_mhu.c \ |
| 63 | drivers/arm/css/scp/css_bom_bootloader.c \ |
| 64 | drivers/arm/css/scpi/css_scpi.c |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 65 | # Enable option to detect whether the SCP ROM firmware in use predates version |
| 66 | # 1.7.0 and therefore, is incompatible. |
| 67 | CSS_DETECT_PRE_1_7_0_SCP := 1 |
| 68 | |
| 69 | # Process CSS_DETECT_PRE_1_7_0_SCP flag |
| 70 | $(eval $(call assert_boolean,CSS_DETECT_PRE_1_7_0_SCP)) |
| 71 | $(eval $(call add_define,CSS_DETECT_PRE_1_7_0_SCP)) |
| 72 | endif |
| 73 | endif |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 74 | |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 75 | ifeq (${CSS_USE_SCMI_SDS_DRIVER},1) |
Antonio Nino Diaz | 09d5876 | 2019-01-23 19:06:55 +0000 | [diff] [blame] | 76 | PLAT_BL_COMMON_SOURCES += drivers/arm/css/sds/${ARCH}/sds_helpers.S |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 77 | endif |
Soby Mathew | ea26bad | 2016-11-14 12:25:45 +0000 | [diff] [blame] | 78 | |
Soby Mathew | 1ced6b8 | 2017-06-12 12:37:10 +0100 | [diff] [blame] | 79 | # Process CSS_USE_SCMI_SDS_DRIVER flag |
| 80 | $(eval $(call assert_boolean,CSS_USE_SCMI_SDS_DRIVER)) |
| 81 | $(eval $(call add_define,CSS_USE_SCMI_SDS_DRIVER)) |
Alexei Fedorov | e9ab905 | 2017-05-25 15:57:18 +0100 | [diff] [blame] | 82 | |
| 83 | # Process CSS_NON_SECURE_UART flag |
| 84 | # This undocumented build option is only to enable debug access to the UART |
| 85 | # from non secure code, which is useful on some platforms. |
| 86 | # Default (obviously) is off. |
| 87 | CSS_NON_SECURE_UART := 0 |
| 88 | $(eval $(call assert_boolean,CSS_NON_SECURE_UART)) |
| 89 | $(eval $(call add_define,CSS_NON_SECURE_UART)) |
| 90 | |