blob: ae89115f8ded31c719ba9cf3408bf70a3d49cbcf [file] [log] [blame]
Pankaj Gupta0d2d3c22020-12-09 14:02:38 +05301#
2# Copyright 2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_I2C},)
8
9ADD_I2C := 1
10I2C_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/i2c
11
12I2C_SOURCES += $(I2C_DRIVERS_PATH)/i2c.c
13PLAT_INCLUDES += -I$(I2C_DRIVERS_PATH)
14
15ifeq (${BL_COMM_I2C_NEEDED},yes)
16BL_COMMON_SOURCES += ${I2C_SOURCES}
17else
18ifeq (${BL2_I2C_NEEDED},yes)
19BL2_SOURCES += ${I2C_SOURCES}
20endif
21ifeq (${BL31_I2C_NEEDED},yes)
22BL31_SOURCES += ${I2C_SOURCES}
23endif
24endif
25endif