• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \
6	-Idrivers/gpu/drm/amd/include \
7	-Idrivers/gpu/drm/amd/amdgpu \
8	-Idrivers/gpu/drm/amd/scheduler
9
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
24# add asic specific block
25amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \
26	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
28
29amdgpu-y += \
30	vi.o
31
32# add GMC block
33amdgpu-y += \
34	gmc_v7_0.o \
35	gmc_v8_0.o
36
37# add IH block
38amdgpu-y += \
39	amdgpu_irq.o \
40	amdgpu_ih.o \
41	iceland_ih.o \
42	tonga_ih.o \
43	cz_ih.o
44
45# add SMC block
46amdgpu-y += \
47	amdgpu_dpm.o \
48	cz_smc.o cz_dpm.o \
49	tonga_smc.o tonga_dpm.o \
50	fiji_smc.o fiji_dpm.o \
51	iceland_smc.o iceland_dpm.o
52
53# add DCE block
54amdgpu-y += \
55	dce_v10_0.o \
56	dce_v11_0.o
57
58# add GFX block
59amdgpu-y += \
60	amdgpu_gfx.o \
61	gfx_v8_0.o
62
63# add async DMA block
64amdgpu-y += \
65	sdma_v2_4.o \
66	sdma_v3_0.o
67
68# add UVD block
69amdgpu-y += \
70	amdgpu_uvd.o \
71	uvd_v5_0.o \
72	uvd_v6_0.o
73
74# add VCE block
75amdgpu-y += \
76	amdgpu_vce.o \
77	vce_v3_0.o
78
79# add amdkfd interfaces
80amdgpu-y += \
81	 amdgpu_amdkfd.o \
82	 amdgpu_amdkfd_gfx_v8.o
83
84# add cgs
85amdgpu-y += amdgpu_cgs.o
86
87# GPU scheduler
88amdgpu-y += \
89	../scheduler/gpu_scheduler.o \
90	../scheduler/sched_fence.o \
91	amdgpu_sched.o
92
93amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o
94amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
95amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
96amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o
97
98obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
99
100CFLAGS_amdgpu_trace_points.o := -I$(src)
101