blob: d658d19f153cd4ea8b416a923a7e863cf1b0408e [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
Pankaj Gupta7834b462021-03-25 15:15:52 +053011PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/timer
12TIMER_SOURCES += drivers/delay_timer/delay_timer.c \
Pankaj Gupta68a181e2020-12-09 14:02:38 +053013 $(PLAT_DRIVERS_PATH)/timer/nxp_timer.c
14
15ifeq (${BL_COMM_TIMER_NEEDED},yes)
16BL_COMMON_SOURCES += ${TIMER_SOURCES}
17else
18ifeq (${BL2_TIMER_NEEDED},yes)
19BL2_SOURCES += ${TIMER_SOURCES}
20endif
21ifeq (${BL31_TIMER_NEEDED},yes)
22BL31_SOURCES += ${TIMER_SOURCES}
23endif
24endif
25endif