1# 2# Copyright 2021 NXP 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#----------------------------------------------------------------------------- 7 8ifeq (${GPIO_ADDED},) 9 10GPIO_ADDED := 1 11 12GPIO_DRIVERS_PATH := drivers/nxp/gpio 13 14PLAT_INCLUDES += -I$(GPIO_DRIVERS_PATH) 15 16GPIO_SOURCES := $(GPIO_DRIVERS_PATH)/nxp_gpio.c 17 18ifeq (${BL_COMM_GPIO_NEEDED},yes) 19BL_COMMON_SOURCES += ${GPIO_SOURCES} 20else 21ifeq (${BL2_GPIO_NEEDED},yes) 22BL2_SOURCES += ${GPIO_SOURCES} 23endif 24ifeq (${BL31_GPIO_NEEDED},yes) 25BL31_SOURCES += ${GPIO_SOURCES} 26endif 27endif 28 29endif 30#------------------------------------------------ 31