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