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