1# 2# Makefile for the drm device driver. This driver provides support for the 3# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 4 5FULL_AMD_PATH=$(src)/.. 6DISPLAY_FOLDER_NAME=display 7FULL_AMD_DISPLAY_PATH = $(FULL_AMD_PATH)/$(DISPLAY_FOLDER_NAME) 8 9ccflags-y := -I$(FULL_AMD_PATH)/include/asic_reg \ 10 -I$(FULL_AMD_PATH)/include \ 11 -I$(FULL_AMD_PATH)/amdgpu \ 12 -I$(FULL_AMD_PATH)/scheduler \ 13 -I$(FULL_AMD_PATH)/powerplay/inc \ 14 -I$(FULL_AMD_PATH)/acp/include \ 15 -I$(FULL_AMD_DISPLAY_PATH) \ 16 -I$(FULL_AMD_DISPLAY_PATH)/include \ 17 -I$(FULL_AMD_DISPLAY_PATH)/dc \ 18 -I$(FULL_AMD_DISPLAY_PATH)/amdgpu_dm 19 20amdgpu-y := amdgpu_drv.o 21 22# add KMS driver 23amdgpu-y += amdgpu_device.o amdgpu_kms.o \ 24 amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \ 25 atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \ 26 amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \ 27 amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \ 28 amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \ 29 amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \ 30 atombios_encoders.o amdgpu_sa.o atombios_i2c.o \ 31 amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \ 32 amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o \ 33 amdgpu_gtt_mgr.o amdgpu_vram_mgr.o amdgpu_virt.o amdgpu_atomfirmware.o \ 34 amdgpu_queue_mgr.o amdgpu_vf_error.o 35 36# add asic specific block 37amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \ 38 ci_smc.o ci_dpm.o dce_v8_0.o gfx_v7_0.o cik_sdma.o uvd_v4_2.o vce_v2_0.o \ 39 amdgpu_amdkfd_gfx_v7.o 40 41amdgpu-$(CONFIG_DRM_AMDGPU_SI)+= si.o gmc_v6_0.o gfx_v6_0.o si_ih.o si_dma.o dce_v6_0.o si_dpm.o si_smc.o 42 43amdgpu-y += \ 44 vi.o mxgpu_vi.o nbio_v6_1.o soc15.o mxgpu_ai.o nbio_v7_0.o 45 46# add GMC block 47amdgpu-y += \ 48 gmc_v7_0.o \ 49 gmc_v8_0.o \ 50 gfxhub_v1_0.o mmhub_v1_0.o gmc_v9_0.o 51 52# add IH block 53amdgpu-y += \ 54 amdgpu_irq.o \ 55 amdgpu_ih.o \ 56 iceland_ih.o \ 57 tonga_ih.o \ 58 cz_ih.o \ 59 vega10_ih.o 60 61# add PSP block 62amdgpu-y += \ 63 amdgpu_psp.o \ 64 psp_v3_1.o \ 65 psp_v10_0.o 66 67# add SMC block 68amdgpu-y += \ 69 amdgpu_dpm.o \ 70 amdgpu_powerplay.o 71 72# add DCE block 73amdgpu-y += \ 74 dce_v10_0.o \ 75 dce_v11_0.o \ 76 dce_virtual.o 77 78# add GFX block 79amdgpu-y += \ 80 amdgpu_gfx.o \ 81 gfx_v8_0.o \ 82 gfx_v9_0.o 83 84# add async DMA block 85amdgpu-y += \ 86 sdma_v2_4.o \ 87 sdma_v3_0.o \ 88 sdma_v4_0.o 89 90# add UVD block 91amdgpu-y += \ 92 amdgpu_uvd.o \ 93 uvd_v5_0.o \ 94 uvd_v6_0.o \ 95 uvd_v7_0.o 96 97# add VCE block 98amdgpu-y += \ 99 amdgpu_vce.o \ 100 vce_v3_0.o \ 101 vce_v4_0.o 102 103# add VCN block 104amdgpu-y += \ 105 amdgpu_vcn.o \ 106 vcn_v1_0.o 107 108# add amdkfd interfaces 109amdgpu-y += \ 110 amdgpu_amdkfd.o \ 111 amdgpu_amdkfd_gfx_v8.o 112 113# add cgs 114amdgpu-y += amdgpu_cgs.o 115 116# GPU scheduler 117amdgpu-y += \ 118 ../scheduler/gpu_scheduler.o \ 119 ../scheduler/sched_fence.o \ 120 amdgpu_job.o 121 122# ACP componet 123ifneq ($(CONFIG_DRM_AMD_ACP),) 124amdgpu-y += amdgpu_acp.o 125 126AMDACPPATH := ../acp 127include $(FULL_AMD_PATH)/acp/Makefile 128 129amdgpu-y += $(AMD_ACP_FILES) 130endif 131 132amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o 133amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o 134amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o 135amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o 136 137include $(FULL_AMD_PATH)/powerplay/Makefile 138 139amdgpu-y += $(AMD_POWERPLAY_FILES) 140 141ifneq ($(CONFIG_DRM_AMD_DC),) 142 143RELATIVE_AMD_DISPLAY_PATH = ../$(DISPLAY_FOLDER_NAME) 144include $(FULL_AMD_DISPLAY_PATH)/Makefile 145 146amdgpu-y += $(AMD_DISPLAY_FILES) 147 148endif 149 150obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o 151