1# 2# Copyright 2021 NXP 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#----------------------------------------------------------------------------- 7ifeq (${PMU_ADDED},) 8 9PMU_ADDED := 1 10 11PMU_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/pmu 12 13PLAT_INCLUDES += -I$(PMU_DRIVERS_PATH) 14 15PMU_SOURCES += $(PMU_DRIVERS_PATH)/pmu.c 16 17ifeq (${BL_COMM_PMU_NEEDED},yes) 18BL_COMMON_SOURCES += ${PMU_SOURCES} 19else 20ifeq (${BL2_PMU_NEEDED},yes) 21BL2_SOURCES += ${PMU_SOURCES} 22endif 23ifeq (${BL31_PMU_NEEDED},yes) 24BL31_SOURCES += ${PMU_SOURCES} 25endif 26endif 27endif 28#------------------------------------------------ 29