blob: c83b1bd18cf70b3b35d1e89d376f30668586fbd8 [file] [log] [blame]
Pankaj Gupta7d2f40f2020-12-09 14:02:39 +05301#
Pankaj Gupta7834b462021-03-25 15:15:52 +05302# Copyright 2021 NXP
Pankaj Gupta7d2f40f2020-12-09 14:02:39 +05303#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_SD_MMC},)
8
9ADD_SD_MMC := 1
10
Pankaj Gupta7834b462021-03-25 15:15:52 +053011SD_MMC_BOOT_SOURCES += ${PLAT_DRIVERS_PATH}/sd/sd_mmc.c \
Pankaj Gupta7d2f40f2020-12-09 14:02:39 +053012 drivers/io/io_block.c
13
Pankaj Gupta7834b462021-03-25 15:15:52 +053014PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sd
Pankaj Gupta7d2f40f2020-12-09 14:02:39 +053015
16ifeq (${BL_COMM_SD_MMC_NEEDED},yes)
17BL_COMMON_SOURCES += ${SD_MMC_BOOT_SOURCES}
18else
19ifeq (${BL2_SD_MMC_NEEDED},yes)
20BL2_SOURCES += ${SD_MMC_BOOT_SOURCES}
21endif
22ifeq (${BL3_SD_MMC_NEEDED},yes)
23BL31_SOURCES += ${SD_MMC_BOOT_SOURCES}
24endif
25endif
26endif