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