xref: /rk3399_ARM-atf/plat/arm/board/common/board_common.mk (revision 82cb2c1ad9897473743f08437d0a3995bed561b9)
195cfd4adSJuan Castillo#
2c64a0448SVikram Kanigiri# Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
395cfd4adSJuan Castillo#
4*82cb2c1aSdp-arm# SPDX-License-Identifier: BSD-3-Clause
595cfd4adSJuan Castillo#
695cfd4adSJuan Castillo
77b4c1405SJuan CastilloPLAT_INCLUDES		+=	-Iinclude/plat/arm/board/common/			\
87b4c1405SJuan Castillo				-Iinclude/plat/arm/board/common/drivers
995cfd4adSJuan Castillo
101a0a3f06SYatharth KocharPLAT_BL_COMMON_SOURCES	+=	drivers/arm/pl011/${ARCH}/pl011_console.S		\
111a0a3f06SYatharth Kochar				plat/arm/board/common/${ARCH}/board_arm_helpers.S
1295cfd4adSJuan Castillo
137b4c1405SJuan CastilloBL1_SOURCES		+=	plat/arm/board/common/drivers/norflash/norflash.c
1495cfd4adSJuan Castillo
157b4c1405SJuan CastilloBL2_SOURCES		+=	plat/arm/board/common/drivers/norflash/norflash.c
1695cfd4adSJuan Castillo
1795cfd4adSJuan Castillo#BL31_SOURCES		+=
1895cfd4adSJuan Castillo
1995cfd4adSJuan Castilloifneq (${TRUSTED_BOARD_BOOT},0)
2095cfd4adSJuan Castillo    # ROTPK hash location
2195cfd4adSJuan Castillo    ifeq (${ARM_ROTPK_LOCATION}, regs)
2295cfd4adSJuan Castillo        ARM_ROTPK_LOCATION_ID = ARM_ROTPK_REGS_ID
2395cfd4adSJuan Castillo    else ifeq (${ARM_ROTPK_LOCATION}, devel_rsa)
2495cfd4adSJuan Castillo        ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID
2595cfd4adSJuan Castillo    else
2695cfd4adSJuan Castillo        $(error "Unsupported ARM_ROTPK_LOCATION value")
2795cfd4adSJuan Castillo    endif
2895cfd4adSJuan Castillo    $(eval $(call add_define,ARM_ROTPK_LOCATION_ID))
2995cfd4adSJuan Castillo
3048279d52SJuan Castillo    # Certificate NV-Counters. Use values corresponding to tied off values in
3148279d52SJuan Castillo    # ARM development platforms
3248279d52SJuan Castillo    TFW_NVCTR_VAL	?=	31
3348279d52SJuan Castillo    NTFW_NVCTR_VAL	?=	223
3448279d52SJuan Castillo
3595cfd4adSJuan Castillo    BL1_SOURCES		+=	plat/arm/board/common/board_arm_trusted_boot.c
3695cfd4adSJuan Castillo    BL2_SOURCES		+=	plat/arm/board/common/board_arm_trusted_boot.c
3795cfd4adSJuan Castilloendif
38c64a0448SVikram Kanigiri
39c64a0448SVikram Kanigiri# This flag controls whether memory usage needs to be optimised
400289970dSAntonio Nino DiazARM_BOARD_OPTIMISE_MEM	?=	0
41c64a0448SVikram Kanigiri
42c64a0448SVikram Kanigiri# Process flags
430289970dSAntonio Nino Diaz$(eval $(call assert_boolean,ARM_BOARD_OPTIMISE_MEM))
440289970dSAntonio Nino Diaz$(eval $(call add_define,ARM_BOARD_OPTIMISE_MEM))
45