blob: 74f0dc4bf099c618a3fc3fbe1ec6e8b363ecb122 [file] [log] [blame]
Pankaj Guptab4806422020-12-09 14:02:39 +05301#
2# Copyright 2021 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-----------------------------------------------------------------------------
7
8ifeq (${GPIO_ADDED},)
9
10GPIO_ADDED := 1
11
Pankaj Gupta7834b462021-03-25 15:15:52 +053012PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/gpio
Pankaj Guptab4806422020-12-09 14:02:39 +053013
Pankaj Gupta7834b462021-03-25 15:15:52 +053014GPIO_SOURCES := $(PLAT_DRIVERS_PATH)/gpio/nxp_gpio.c
Pankaj Guptab4806422020-12-09 14:02:39 +053015
16ifeq (${BL_COMM_GPIO_NEEDED},yes)
17BL_COMMON_SOURCES += ${GPIO_SOURCES}
18else
19ifeq (${BL2_GPIO_NEEDED},yes)
20BL2_SOURCES += ${GPIO_SOURCES}
21endif
22ifeq (${BL31_GPIO_NEEDED},yes)
23BL31_SOURCES += ${GPIO_SOURCES}
24endif
25endif
26
27endif
28#------------------------------------------------