blob: 04c2707570308df807f96b10e2cf3695cf8da092 [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
yanyang15fc3aee2015-05-22 14:39:35 -04005ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \
Alex Deucher8e9198d2015-08-16 22:51:50 -04006 -Idrivers/gpu/drm/amd/include \
Alex Deucherb80d8472015-08-16 22:55:02 -04007 -Idrivers/gpu/drm/amd/amdgpu \
8 -Idrivers/gpu/drm/amd/scheduler
Alex Deucherd38ceaf2015-04-20 16:55:21 -04009
10amdgpu-y := amdgpu_drv.o
11
12# add KMS driver
13amdgpu-y += amdgpu_device.o amdgpu_kms.o \
14 amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \
15 atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \
16 amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
17 amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
18 amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
19 amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
20 atombios_encoders.o amdgpu_semaphore.o amdgpu_sa.o atombios_i2c.o \
21 amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
22 amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o
23
Alex Deucheraaa36a92015-04-20 17:31:14 -040024# add asic specific block
Alex Deuchera2e73f52015-04-20 17:09:27 -040025amdgpu-$(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 -040026 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 \
27 amdgpu_amdkfd_gfx_v7.o
Alex Deuchera2e73f52015-04-20 17:09:27 -040028
Alex Deucheraaa36a92015-04-20 17:31:14 -040029amdgpu-y += \
30 vi.o
31
32# add GMC block
33amdgpu-y += \
34 gmc_v8_0.o
35
Alex Deucherd38ceaf2015-04-20 16:55:21 -040036# add IH block
37amdgpu-y += \
38 amdgpu_irq.o \
Alex Deucheraaa36a92015-04-20 17:31:14 -040039 amdgpu_ih.o \
40 iceland_ih.o \
41 tonga_ih.o \
42 cz_ih.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040043
44# add SMC block
45amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040046 amdgpu_dpm.o \
47 cz_smc.o cz_dpm.o \
48 tonga_smc.o tonga_dpm.o \
David Zhang8e711e1a2015-07-08 01:23:25 +080049 fiji_smc.o fiji_dpm.o \
Alex Deucheraaa36a92015-04-20 17:31:14 -040050 iceland_smc.o iceland_dpm.o
51
52# add DCE block
53amdgpu-y += \
54 dce_v10_0.o \
55 dce_v11_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040056
57# add GFX block
58amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040059 amdgpu_gfx.o \
60 gfx_v8_0.o
61
62# add async DMA block
63amdgpu-y += \
64 sdma_v2_4.o \
65 sdma_v3_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040066
67# add UVD block
68amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040069 amdgpu_uvd.o \
70 uvd_v5_0.o \
71 uvd_v6_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040072
73# add VCE block
74amdgpu-y += \
Alex Deucheraaa36a92015-04-20 17:31:14 -040075 amdgpu_vce.o \
76 vce_v3_0.o
Alex Deucherd38ceaf2015-04-20 16:55:21 -040077
Oded Gabbay130e0372015-06-12 21:35:14 +030078# add amdkfd interfaces
79amdgpu-y += \
Oded Gabbay32c22e92015-06-12 21:38:22 +030080 amdgpu_amdkfd.o \
Ben Gozff758a12014-10-07 14:43:07 +030081 amdgpu_amdkfd_gfx_v8.o
Oded Gabbay130e0372015-06-12 21:35:14 +030082
Chunming Zhoud03846a2015-07-28 14:20:03 -040083# add cgs
84amdgpu-y += amdgpu_cgs.o
85
Alex Deucherb80d8472015-08-16 22:55:02 -040086# GPU scheduler
87amdgpu-y += \
Chunming Zhouc1b69ed2015-07-21 13:45:14 +080088 ../scheduler/gpu_scheduler.o \
Chunming Zhouf556cb0c2015-08-02 11:18:04 +080089 ../scheduler/sched_fence.o \
Chunming Zhouc1b69ed2015-07-21 13:45:14 +080090 amdgpu_sched.o
Alex Deucherb80d8472015-08-16 22:55:02 -040091
Alex Deucherd38ceaf2015-04-20 16:55:21 -040092amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o
93amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
94amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
95amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o
96
97obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
98
99CFLAGS_amdgpu_trace_points.o := -I$(src)