gpio.mk 575 B

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