Makefile 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #
  2. # Copyright 2017 Advanced Micro Devices, Inc.
  3. #
  4. # Permission is hereby granted, free of charge, to any person obtaining a
  5. # copy of this software and associated documentation files (the "Software"),
  6. # to deal in the Software without restriction, including without limitation
  7. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. # and/or sell copies of the Software, and to permit persons to whom the
  9. # Software is furnished to do so, subject to the following conditions:
  10. #
  11. # The above copyright notice and this permission notice shall be included in
  12. # all copies or substantial portions of the Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. # THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18. # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. # OTHER DEALINGS IN THE SOFTWARE.
  21. #
  22. #
  23. # Makefile for the 'gpio' sub-component of DAL.
  24. # It provides the control and status of HW GPIO pins.
  25. GPIO = gpio_base.o gpio_service.o hw_factory.o \
  26. hw_gpio.o hw_hpd.o hw_ddc.o hw_translate.o
  27. AMD_DAL_GPIO = $(addprefix $(AMDDALPATH)/dc/gpio/,$(GPIO))
  28. AMD_DISPLAY_FILES += $(AMD_DAL_GPIO)
  29. ###############################################################################
  30. # DCE 8x
  31. ###############################################################################
  32. # all DCE8.x are derived from DCE8.0
  33. GPIO_DCE80 = hw_translate_dce80.o hw_factory_dce80.o
  34. AMD_DAL_GPIO_DCE80 = $(addprefix $(AMDDALPATH)/dc/gpio/dce80/,$(GPIO_DCE80))
  35. AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DCE80)
  36. ###############################################################################
  37. # DCE 11x
  38. ###############################################################################
  39. GPIO_DCE110 = hw_translate_dce110.o hw_factory_dce110.o
  40. AMD_DAL_GPIO_DCE110 = $(addprefix $(AMDDALPATH)/dc/gpio/dce110/,$(GPIO_DCE110))
  41. AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DCE110)
  42. ###############################################################################
  43. # DCE 12x
  44. ###############################################################################
  45. GPIO_DCE120 = hw_translate_dce120.o hw_factory_dce120.o
  46. AMD_DAL_GPIO_DCE120 = $(addprefix $(AMDDALPATH)/dc/gpio/dce120/,$(GPIO_DCE120))
  47. AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DCE120)
  48. ###############################################################################
  49. # DCN 1x
  50. ###############################################################################
  51. ifdef CONFIG_DRM_AMD_DC_DCN1_0
  52. GPIO_DCN10 = hw_translate_dcn10.o hw_factory_dcn10.o
  53. AMD_DAL_GPIO_DCN10 = $(addprefix $(AMDDALPATH)/dc/gpio/dcn10/,$(GPIO_DCN10))
  54. AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DCN10)
  55. endif
  56. ###############################################################################
  57. # Diagnostics on FPGA
  58. ###############################################################################
  59. GPIO_DIAG_FPGA = hw_translate_diag.o hw_factory_diag.o
  60. AMD_DAL_GPIO_DIAG_FPGA = $(addprefix $(AMDDALPATH)/dc/gpio/diagnostics/,$(GPIO_DIAG_FPGA))
  61. AMD_DISPLAY_FILES += $(AMD_DAL_GPIO_DIAG_FPGA)