blob: 66f729eaf00bb99f09ef5960daf8c7630ceccb96 [file] [log] [blame]
Alex Deucherd38ceaf2015-04-20 16:55:21 -04001#
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
Jammy Zhou288912c2015-11-24 16:55:20 +08005FULL_AMD_PATH=$(src)/..
6
7ccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \
8 -I$(FULL_AMD_PATH)/include \
9 -I$(FULL_AMD_PATH)/amdgpu \
Alex Deucher1f7371b2015-12-02 17:46:21 -050010 -I$(FULL_AMD_PATH)/scheduler \
11 -I$(FULL_AMD_PATH)/powerplay/inc
Alex Deucherd38ceaf2015-04-20 16:55:21 -040012
13amdgpu-y := amdgpu_drv.o
14
15# add KMS driver
16amdgpu-y += amdgpu_device.o amdgpu_kms.o \
17 amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \
18 atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \
19 amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
20 amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
21 amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
22 amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
23 atombios_encoders.o amdgpu_semaphore.o amdgpu_sa.o atombios_i2c.o \
24 amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
25 amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o
26
Alex Deucheraaa36a92015-04-20 17:31:14 -040027# add asic specific block
Alex Deuchera2e73f52015-04-20 17:09:27 -040028amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o gmc_v7_0.o cik_ih.o kv_smc.o kv_dpm.o \
Alex Deucher41548ef2015-07-31 17:20:14 -040029 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 \
30 amdgpu_amdkfd_gfx_v7.o
Alex Deuchera2e73f52015-04-20 17:09:27 -040031
Alex Deucheraaa36a92015-04-20 17:31:14 -040032amdgpu-y += \
33 vi.o
34
35# add GMC block
36amdgpu-y += \
37 gmc_v8_0.o
38
Alex Deucherd38ceaf2015-04-20 16:55:21 -040039# add IH block
40amdgpu-y += \
41 amdgpu_irq.o \
Alex Deucheraaa36a92015-04-20 17:31:14 -040042 amdgpu_ih.o \
43 iceland_ih.o \
44 tonga_ih.o \
45 cz_ih.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040046
47# add SMC block
48amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040049 amdgpu_dpm.o \
Alex Deucher1f7371b2015-12-02 17:46:21 -050050 amdgpu_powerplay.o \
Alex Deucheraaa36a92015-04-20 17:31:14 -040051 cz_smc.o cz_dpm.o \
52 tonga_smc.o tonga_dpm.o \
David Zhang8e711e1a2015-07-08 01:23:25 +080053 fiji_smc.o fiji_dpm.o \
Alex Deucheraaa36a92015-04-20 17:31:14 -040054 iceland_smc.o iceland_dpm.o
55
56# add DCE block
57amdgpu-y += \
58 dce_v10_0.o \
59 dce_v11_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040060
61# add GFX block
62amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040063 amdgpu_gfx.o \
64 gfx_v8_0.o
65
66# add async DMA block
67amdgpu-y += \
68 sdma_v2_4.o \
69 sdma_v3_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040070
71# add UVD block
72amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040073 amdgpu_uvd.o \
74 uvd_v5_0.o \
75 uvd_v6_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040076
77# add VCE block
78amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040079 amdgpu_vce.o \
80 vce_v3_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040081
Oded Gabbay130e0372015-06-12 21:35:14 +030082# add amdkfd interfaces
83amdgpu-y += \
Oded Gabbay32c22e92015-06-12 21:38:22 +030084 amdgpu_amdkfd.o \
Ben Gozff758a12014-10-07 14:43:07 +030085 amdgpu_amdkfd_gfx_v8.o
Oded Gabbay130e0372015-06-12 21:35:14 +030086
Chunming Zhoud03846a2015-07-28 14:20:03 -040087# add cgs
88amdgpu-y += amdgpu_cgs.o
89
Alex Deucherb80d8472015-08-16 22:55:02 -040090# GPU scheduler
91amdgpu-y += \
Chunming Zhouc1b69ed2015-07-21 13:45:14 +080092 ../scheduler/gpu_scheduler.o \
Chunming Zhouf556cb0c2015-08-02 11:18:04 +080093 ../scheduler/sched_fence.o \
Chunming Zhouc1b69ed2015-07-21 13:45:14 +080094 amdgpu_sched.o
Alex Deucherb80d8472015-08-16 22:55:02 -040095
Alex Deucherd38ceaf2015-04-20 16:55:21 -040096amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o
97amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
98amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
99amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o
100
Alex Deucher1f7371b2015-12-02 17:46:21 -0500101ifneq ($(CONFIG_DRM_AMD_POWERPLAY),)
102
Qiang Yubd90dd82015-12-02 10:56:57 +0800103include $(FULL_AMD_PATH)/powerplay/Makefile
Alex Deucher1f7371b2015-12-02 17:46:21 -0500104
105amdgpu-y += $(AMD_POWERPLAY_FILES)
106
107endif
108
Alex Deucherd38ceaf2015-04-20 16:55:21 -0400109obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
110
111CFLAGS_amdgpu_trace_points.o := -I$(src)