blob: 8d2ef07c444eff9200ccaacfb3d3ef01e477c0de [file] [log] [blame]
Pankaj Guptaadbc3fa2020-12-09 14:02:39 +05301#
2# Copyright 2021 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-----------------------------------------------------------------------------
7ifeq (${PMU_ADDED},)
8
9PMU_ADDED := 1
10
Pankaj Gupta7834b462021-03-25 15:15:52 +053011PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/pmu
Pankaj Guptaadbc3fa2020-12-09 14:02:39 +053012
Pankaj Gupta7834b462021-03-25 15:15:52 +053013PMU_SOURCES += $(PLAT_DRIVERS_PATH)/pmu/pmu.c
Pankaj Guptaadbc3fa2020-12-09 14:02:39 +053014
15ifeq (${BL_COMM_PMU_NEEDED},yes)
16BL_COMMON_SOURCES += ${PMU_SOURCES}
17else
18ifeq (${BL2_PMU_NEEDED},yes)
19BL2_SOURCES += ${PMU_SOURCES}
20endif
21ifeq (${BL31_PMU_NEEDED},yes)
22BL31_SOURCES += ${PMU_SOURCES}
23endif
24endif
25endif
26#------------------------------------------------