blob: b9e298f2fd27c68932ecb54ef092b8df412ec1cd [file] [log] [blame]
Pankaj Gupta68a181e2020-12-09 14:02:38 +05301#
2# Copyright 2021 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_TIMER},)
8
9ADD_TIMER := 1
10
11TIMER_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/timer
12
13PLAT_INCLUDES += -I$(TIMER_DRIVERS_PATH)
14TIMER_SOURCES += drivers/delay_timer/delay_timer.c \
15 $(PLAT_DRIVERS_PATH)/timer/nxp_timer.c
16
17ifeq (${BL_COMM_TIMER_NEEDED},yes)
18BL_COMMON_SOURCES += ${TIMER_SOURCES}
19else
20ifeq (${BL2_TIMER_NEEDED},yes)
21BL2_SOURCES += ${TIMER_SOURCES}
22endif
23ifeq (${BL31_TIMER_NEEDED},yes)
24BL31_SOURCES += ${TIMER_SOURCES}
25endif
26endif
27endif