1d38ceaf9SAlex Deucher# 2d38ceaf9SAlex Deucher# Makefile for the drm device driver. This driver provides support for the 3d38ceaf9SAlex Deucher# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. 4d38ceaf9SAlex Deucher 55fc3aeebSyanyang1ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \ 68e9198d0SAlex Deucher -Idrivers/gpu/drm/amd/include \ 78e9198d0SAlex Deucher -Idrivers/gpu/drm/amd/amdgpu 8d38ceaf9SAlex Deucher 9d38ceaf9SAlex Deucheramdgpu-y := amdgpu_drv.o 10d38ceaf9SAlex Deucher 11d38ceaf9SAlex Deucher# add KMS driver 12d38ceaf9SAlex Deucheramdgpu-y += amdgpu_device.o amdgpu_kms.o \ 13d38ceaf9SAlex Deucher amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \ 14d38ceaf9SAlex Deucher atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \ 15d38ceaf9SAlex Deucher amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \ 16d38ceaf9SAlex Deucher amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \ 17d38ceaf9SAlex Deucher amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \ 18d38ceaf9SAlex Deucher amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \ 19d38ceaf9SAlex Deucher atombios_encoders.o amdgpu_semaphore.o amdgpu_sa.o atombios_i2c.o \ 20d38ceaf9SAlex Deucher amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \ 21d38ceaf9SAlex Deucher amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o 22d38ceaf9SAlex Deucher 23aaa36a97SAlex Deucher# add asic specific block 24a2e73f56SAlex Deucheramdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o gmc_v7_0.o cik_ih.o kv_smc.o kv_dpm.o \ 25*41548ef7SAlex Deucher 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 \ 26*41548ef7SAlex Deucher amdgpu_amdkfd_gfx_v7.o 27a2e73f56SAlex Deucher 28aaa36a97SAlex Deucheramdgpu-y += \ 29aaa36a97SAlex Deucher vi.o 30aaa36a97SAlex Deucher 31aaa36a97SAlex Deucher# add GMC block 32aaa36a97SAlex Deucheramdgpu-y += \ 33aaa36a97SAlex Deucher gmc_v8_0.o 34aaa36a97SAlex Deucher 35d38ceaf9SAlex Deucher# add IH block 36d38ceaf9SAlex Deucheramdgpu-y += \ 37d38ceaf9SAlex Deucher amdgpu_irq.o \ 38aaa36a97SAlex Deucher amdgpu_ih.o \ 39aaa36a97SAlex Deucher iceland_ih.o \ 40aaa36a97SAlex Deucher tonga_ih.o \ 41aaa36a97SAlex Deucher cz_ih.o 42d38ceaf9SAlex Deucher 43d38ceaf9SAlex Deucher# add SMC block 44d38ceaf9SAlex Deucheramdgpu-y += \ 45aaa36a97SAlex Deucher amdgpu_dpm.o \ 46aaa36a97SAlex Deucher cz_smc.o cz_dpm.o \ 47aaa36a97SAlex Deucher tonga_smc.o tonga_dpm.o \ 48aaa36a97SAlex Deucher iceland_smc.o iceland_dpm.o 49aaa36a97SAlex Deucher 50aaa36a97SAlex Deucher# add DCE block 51aaa36a97SAlex Deucheramdgpu-y += \ 52aaa36a97SAlex Deucher dce_v10_0.o \ 53aaa36a97SAlex Deucher dce_v11_0.o 54d38ceaf9SAlex Deucher 55d38ceaf9SAlex Deucher# add GFX block 56d38ceaf9SAlex Deucheramdgpu-y += \ 57aaa36a97SAlex Deucher amdgpu_gfx.o \ 58aaa36a97SAlex Deucher gfx_v8_0.o 59aaa36a97SAlex Deucher 60aaa36a97SAlex Deucher# add async DMA block 61aaa36a97SAlex Deucheramdgpu-y += \ 62aaa36a97SAlex Deucher sdma_v2_4.o \ 63aaa36a97SAlex Deucher sdma_v3_0.o 64d38ceaf9SAlex Deucher 65d38ceaf9SAlex Deucher# add UVD block 66d38ceaf9SAlex Deucheramdgpu-y += \ 67aaa36a97SAlex Deucher amdgpu_uvd.o \ 68aaa36a97SAlex Deucher uvd_v5_0.o \ 69aaa36a97SAlex Deucher uvd_v6_0.o 70d38ceaf9SAlex Deucher 71d38ceaf9SAlex Deucher# add VCE block 72d38ceaf9SAlex Deucheramdgpu-y += \ 73aaa36a97SAlex Deucher amdgpu_vce.o \ 74aaa36a97SAlex Deucher vce_v3_0.o 75d38ceaf9SAlex Deucher 76130e0371SOded Gabbay# add amdkfd interfaces 77130e0371SOded Gabbayamdgpu-y += \ 7832c22e99SOded Gabbay amdgpu_amdkfd.o \ 79ff758a12SBen Goz amdgpu_amdkfd_gfx_v8.o 80130e0371SOded Gabbay 81d03846afSChunming Zhou# add cgs 82d03846afSChunming Zhouamdgpu-y += amdgpu_cgs.o 83d03846afSChunming Zhou 84d38ceaf9SAlex Deucheramdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o 85d38ceaf9SAlex Deucheramdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o 86d38ceaf9SAlex Deucheramdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o 87d38ceaf9SAlex Deucheramdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o 88d38ceaf9SAlex Deucher 89d38ceaf9SAlex Deucherobj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o 90d38ceaf9SAlex Deucher 91d38ceaf9SAlex DeucherCFLAGS_amdgpu_trace_points.o := -I$(src) 92