195cfd4adSJuan Castillo# 2c64a0448SVikram Kanigiri# Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. 395cfd4adSJuan Castillo# 495cfd4adSJuan Castillo# Redistribution and use in source and binary forms, with or without 595cfd4adSJuan Castillo# modification, are permitted provided that the following conditions are met: 695cfd4adSJuan Castillo# 795cfd4adSJuan Castillo# Redistributions of source code must retain the above copyright notice, this 895cfd4adSJuan Castillo# list of conditions and the following disclaimer. 995cfd4adSJuan Castillo# 1095cfd4adSJuan Castillo# Redistributions in binary form must reproduce the above copyright notice, 1195cfd4adSJuan Castillo# this list of conditions and the following disclaimer in the documentation 1295cfd4adSJuan Castillo# and/or other materials provided with the distribution. 1395cfd4adSJuan Castillo# 1495cfd4adSJuan Castillo# Neither the name of ARM nor the names of its contributors may be used 1595cfd4adSJuan Castillo# to endorse or promote products derived from this software without specific 1695cfd4adSJuan Castillo# prior written permission. 1795cfd4adSJuan Castillo# 1895cfd4adSJuan Castillo# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 1995cfd4adSJuan Castillo# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2095cfd4adSJuan Castillo# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2195cfd4adSJuan Castillo# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 2295cfd4adSJuan Castillo# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 2395cfd4adSJuan Castillo# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2495cfd4adSJuan Castillo# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2595cfd4adSJuan Castillo# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2695cfd4adSJuan Castillo# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2795cfd4adSJuan Castillo# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2895cfd4adSJuan Castillo# POSSIBILITY OF SUCH DAMAGE. 2995cfd4adSJuan Castillo# 3095cfd4adSJuan Castillo 317b4c1405SJuan CastilloPLAT_INCLUDES += -Iinclude/plat/arm/board/common/ \ 327b4c1405SJuan Castillo -Iinclude/plat/arm/board/common/drivers 3395cfd4adSJuan Castillo 34*1a0a3f06SYatharth KocharPLAT_BL_COMMON_SOURCES += drivers/arm/pl011/${ARCH}/pl011_console.S \ 35*1a0a3f06SYatharth Kochar plat/arm/board/common/${ARCH}/board_arm_helpers.S 3695cfd4adSJuan Castillo 377b4c1405SJuan CastilloBL1_SOURCES += plat/arm/board/common/drivers/norflash/norflash.c 3895cfd4adSJuan Castillo 397b4c1405SJuan CastilloBL2_SOURCES += plat/arm/board/common/drivers/norflash/norflash.c 4095cfd4adSJuan Castillo 4195cfd4adSJuan Castillo#BL31_SOURCES += 4295cfd4adSJuan Castillo 4395cfd4adSJuan Castilloifneq (${TRUSTED_BOARD_BOOT},0) 4495cfd4adSJuan Castillo # ROTPK hash location 4595cfd4adSJuan Castillo ifeq (${ARM_ROTPK_LOCATION}, regs) 4695cfd4adSJuan Castillo ARM_ROTPK_LOCATION_ID = ARM_ROTPK_REGS_ID 4795cfd4adSJuan Castillo else ifeq (${ARM_ROTPK_LOCATION}, devel_rsa) 4895cfd4adSJuan Castillo ARM_ROTPK_LOCATION_ID = ARM_ROTPK_DEVEL_RSA_ID 4995cfd4adSJuan Castillo else 5095cfd4adSJuan Castillo $(error "Unsupported ARM_ROTPK_LOCATION value") 5195cfd4adSJuan Castillo endif 5295cfd4adSJuan Castillo $(eval $(call add_define,ARM_ROTPK_LOCATION_ID)) 5395cfd4adSJuan Castillo 5448279d52SJuan Castillo # Certificate NV-Counters. Use values corresponding to tied off values in 5548279d52SJuan Castillo # ARM development platforms 5648279d52SJuan Castillo TFW_NVCTR_VAL ?= 31 5748279d52SJuan Castillo NTFW_NVCTR_VAL ?= 223 5848279d52SJuan Castillo 5995cfd4adSJuan Castillo BL1_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c 6095cfd4adSJuan Castillo BL2_SOURCES += plat/arm/board/common/board_arm_trusted_boot.c 6195cfd4adSJuan Castilloendif 62c64a0448SVikram Kanigiri 63c64a0448SVikram Kanigiri# This flag controls whether memory usage needs to be optimised 640289970dSAntonio Nino DiazARM_BOARD_OPTIMISE_MEM ?= 0 65c64a0448SVikram Kanigiri 66c64a0448SVikram Kanigiri# Process flags 670289970dSAntonio Nino Diaz$(eval $(call assert_boolean,ARM_BOARD_OPTIMISE_MEM)) 680289970dSAntonio Nino Diaz$(eval $(call add_define,ARM_BOARD_OPTIMISE_MEM)) 69