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 5288912cbSJammy ZhouFULL_AMD_PATH=$(src)/.. 6288912cbSJammy Zhou 7288912cbSJammy Zhouccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \ 8288912cbSJammy Zhou -I$(FULL_AMD_PATH)/include \ 9288912cbSJammy Zhou -I$(FULL_AMD_PATH)/amdgpu \ 101f7371b2SAlex Deucher -I$(FULL_AMD_PATH)/scheduler \ 11a8fe58ceSMaruthi Bayyavarapu -I$(FULL_AMD_PATH)/powerplay/inc \ 12a8fe58ceSMaruthi Bayyavarapu -I$(FULL_AMD_PATH)/acp/include 13d38ceaf9SAlex Deucher 14d38ceaf9SAlex Deucheramdgpu-y := amdgpu_drv.o 15d38ceaf9SAlex Deucher 16d38ceaf9SAlex Deucher# add KMS driver 17d38ceaf9SAlex Deucheramdgpu-y += amdgpu_device.o amdgpu_kms.o \ 18d38ceaf9SAlex Deucher amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \ 19d38ceaf9SAlex Deucher atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \ 20d38ceaf9SAlex Deucher amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \ 21d38ceaf9SAlex Deucher amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \ 22d38ceaf9SAlex Deucher amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \ 23d38ceaf9SAlex Deucher amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \ 242f4b9400SChunming Zhou atombios_encoders.o amdgpu_sa.o atombios_i2c.o \ 25d38ceaf9SAlex Deucher amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \ 26bb990bb0SChristian König amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o \ 27a5bde2f9SAlex Deucher amdgpu_gtt_mgr.o amdgpu_vram_mgr.o amdgpu_virt.o amdgpu_atomfirmware.o 28d38ceaf9SAlex Deucher 29aaa36a97SAlex Deucher# add asic specific block 30e42d8526SAlex Deucheramdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \ 3141548ef7SAlex 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 \ 3241548ef7SAlex Deucher amdgpu_amdkfd_gfx_v7.o 33a2e73f56SAlex Deucher 341919696eSMaruthi Srinivas Bayyavarapuamdgpu-$(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 35a036db18SKen Wang 36aaa36a97SAlex Deucheramdgpu-y += \ 37c1d83da9SJunwei Zhang vi.o mxgpu_vi.o nbio_v6_1.o 38aaa36a97SAlex Deucher 39aaa36a97SAlex Deucher# add GMC block 40aaa36a97SAlex Deucheramdgpu-y += \ 41e42d8526SAlex Deucher gmc_v7_0.o \ 42e60f8db5SAlex Xie gmc_v8_0.o \ 43e60f8db5SAlex Xie gfxhub_v1_0.o mmhub_v1_0.o gmc_v9_0.o 44aaa36a97SAlex Deucher 45d38ceaf9SAlex Deucher# add IH block 46d38ceaf9SAlex Deucheramdgpu-y += \ 47d38ceaf9SAlex Deucher amdgpu_irq.o \ 48aaa36a97SAlex Deucher amdgpu_ih.o \ 49aaa36a97SAlex Deucher iceland_ih.o \ 50aaa36a97SAlex Deucher tonga_ih.o \ 51aaa36a97SAlex Deucher cz_ih.o 52d38ceaf9SAlex Deucher 53d38ceaf9SAlex Deucher# add SMC block 54d38ceaf9SAlex Deucheramdgpu-y += \ 55aaa36a97SAlex Deucher amdgpu_dpm.o \ 56db7da7aaSRex Zhu amdgpu_powerplay.o 57aaa36a97SAlex Deucher 58aaa36a97SAlex Deucher# add DCE block 59aaa36a97SAlex Deucheramdgpu-y += \ 60aaa36a97SAlex Deucher dce_v10_0.o \ 61c6e14f40SEmily Deng dce_v11_0.o \ 62c6e14f40SEmily Deng dce_virtual.o 63d38ceaf9SAlex Deucher 64d38ceaf9SAlex Deucher# add GFX block 65d38ceaf9SAlex Deucheramdgpu-y += \ 66aaa36a97SAlex Deucher amdgpu_gfx.o \ 67aaa36a97SAlex Deucher gfx_v8_0.o 68aaa36a97SAlex Deucher 69aaa36a97SAlex Deucher# add async DMA block 70aaa36a97SAlex Deucheramdgpu-y += \ 71aaa36a97SAlex Deucher sdma_v2_4.o \ 72aaa36a97SAlex Deucher sdma_v3_0.o 73d38ceaf9SAlex Deucher 74d38ceaf9SAlex Deucher# add UVD block 75d38ceaf9SAlex Deucheramdgpu-y += \ 76aaa36a97SAlex Deucher amdgpu_uvd.o \ 77aaa36a97SAlex Deucher uvd_v5_0.o \ 78aaa36a97SAlex Deucher uvd_v6_0.o 79d38ceaf9SAlex Deucher 80d38ceaf9SAlex Deucher# add VCE block 81d38ceaf9SAlex Deucheramdgpu-y += \ 82aaa36a97SAlex Deucher amdgpu_vce.o \ 83aaa36a97SAlex Deucher vce_v3_0.o 84d38ceaf9SAlex Deucher 85130e0371SOded Gabbay# add amdkfd interfaces 86130e0371SOded Gabbayamdgpu-y += \ 8732c22e99SOded Gabbay amdgpu_amdkfd.o \ 88ff758a12SBen Goz amdgpu_amdkfd_gfx_v8.o 89130e0371SOded Gabbay 90d03846afSChunming Zhou# add cgs 91d03846afSChunming Zhouamdgpu-y += amdgpu_cgs.o 92d03846afSChunming Zhou 93b80d8475SAlex Deucher# GPU scheduler 94b80d8475SAlex Deucheramdgpu-y += \ 95c1b69ed0SChunming Zhou ../scheduler/gpu_scheduler.o \ 96f556cb0cSChunming Zhou ../scheduler/sched_fence.o \ 970856cab1SChristian König amdgpu_job.o 98b80d8475SAlex Deucher 99a8fe58ceSMaruthi Bayyavarapu# ACP componet 100a8fe58ceSMaruthi Bayyavarapuifneq ($(CONFIG_DRM_AMD_ACP),) 101a8fe58ceSMaruthi Bayyavarapuamdgpu-y += amdgpu_acp.o 102a8fe58ceSMaruthi Bayyavarapu 103a8fe58ceSMaruthi BayyavarapuAMDACPPATH := ../acp 104a8fe58ceSMaruthi Bayyavarapuinclude $(FULL_AMD_PATH)/acp/Makefile 105a8fe58ceSMaruthi Bayyavarapu 106a8fe58ceSMaruthi Bayyavarapuamdgpu-y += $(AMD_ACP_FILES) 107a8fe58ceSMaruthi Bayyavarapuendif 108a8fe58ceSMaruthi Bayyavarapu 109d38ceaf9SAlex Deucheramdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o 110d38ceaf9SAlex Deucheramdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o 111d38ceaf9SAlex Deucheramdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o 112d38ceaf9SAlex Deucheramdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o 113d38ceaf9SAlex Deucher 114bd90dd89SQiang Yuinclude $(FULL_AMD_PATH)/powerplay/Makefile 1151f7371b2SAlex Deucher 1161f7371b2SAlex Deucheramdgpu-y += $(AMD_POWERPLAY_FILES) 1171f7371b2SAlex Deucher 118d38ceaf9SAlex Deucherobj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o 119d38ceaf9SAlex Deucher 120d38ceaf9SAlex DeucherCFLAGS_amdgpu_trace_points.o := -I$(src) 121