xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/Makefile (revision 5fc3aeeb)
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 \
65fc3aeebSyanyang1	-Idrivers/gpu/drm/amd/include
7d38ceaf9SAlex Deucher
8d38ceaf9SAlex Deucheramdgpu-y := amdgpu_drv.o
9d38ceaf9SAlex Deucher
10d38ceaf9SAlex Deucher# add KMS driver
11d38ceaf9SAlex Deucheramdgpu-y += amdgpu_device.o amdgpu_kms.o \
12d38ceaf9SAlex Deucher	amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \
13d38ceaf9SAlex Deucher	atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \
14d38ceaf9SAlex Deucher	amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
15d38ceaf9SAlex Deucher	amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
16d38ceaf9SAlex Deucher	amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
17d38ceaf9SAlex Deucher	amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
18d38ceaf9SAlex Deucher	atombios_encoders.o amdgpu_semaphore.o amdgpu_sa.o atombios_i2c.o \
19d38ceaf9SAlex Deucher	amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
20d38ceaf9SAlex Deucher	amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o
21d38ceaf9SAlex Deucher
22aaa36a97SAlex Deucher# add asic specific block
23a2e73f56SAlex Deucheramdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o gmc_v7_0.o cik_ih.o kv_smc.o kv_dpm.o \
24a2e73f56SAlex 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
25a2e73f56SAlex Deucher
26aaa36a97SAlex Deucheramdgpu-y += \
27aaa36a97SAlex Deucher	vi.o
28aaa36a97SAlex Deucher
29aaa36a97SAlex Deucher# add GMC block
30aaa36a97SAlex Deucheramdgpu-y += \
31aaa36a97SAlex Deucher	gmc_v8_0.o
32aaa36a97SAlex Deucher
33d38ceaf9SAlex Deucher# add IH block
34d38ceaf9SAlex Deucheramdgpu-y += \
35d38ceaf9SAlex Deucher	amdgpu_irq.o \
36aaa36a97SAlex Deucher	amdgpu_ih.o \
37aaa36a97SAlex Deucher	iceland_ih.o \
38aaa36a97SAlex Deucher	tonga_ih.o \
39aaa36a97SAlex Deucher	cz_ih.o
40d38ceaf9SAlex Deucher
41d38ceaf9SAlex Deucher# add SMC block
42d38ceaf9SAlex Deucheramdgpu-y += \
43aaa36a97SAlex Deucher	amdgpu_dpm.o \
44aaa36a97SAlex Deucher	cz_smc.o cz_dpm.o \
45aaa36a97SAlex Deucher	tonga_smc.o tonga_dpm.o \
46aaa36a97SAlex Deucher	iceland_smc.o iceland_dpm.o
47aaa36a97SAlex Deucher
48aaa36a97SAlex Deucher# add DCE block
49aaa36a97SAlex Deucheramdgpu-y += \
50aaa36a97SAlex Deucher	dce_v10_0.o \
51aaa36a97SAlex Deucher	dce_v11_0.o
52d38ceaf9SAlex Deucher
53d38ceaf9SAlex Deucher# add GFX block
54d38ceaf9SAlex Deucheramdgpu-y += \
55aaa36a97SAlex Deucher	amdgpu_gfx.o \
56aaa36a97SAlex Deucher	gfx_v8_0.o
57aaa36a97SAlex Deucher
58aaa36a97SAlex Deucher# add async DMA block
59aaa36a97SAlex Deucheramdgpu-y += \
60aaa36a97SAlex Deucher	sdma_v2_4.o \
61aaa36a97SAlex Deucher	sdma_v3_0.o
62d38ceaf9SAlex Deucher
63d38ceaf9SAlex Deucher# add UVD block
64d38ceaf9SAlex Deucheramdgpu-y += \
65aaa36a97SAlex Deucher	amdgpu_uvd.o \
66aaa36a97SAlex Deucher	uvd_v5_0.o \
67aaa36a97SAlex Deucher	uvd_v6_0.o
68d38ceaf9SAlex Deucher
69d38ceaf9SAlex Deucher# add VCE block
70d38ceaf9SAlex Deucheramdgpu-y += \
71aaa36a97SAlex Deucher	amdgpu_vce.o \
72aaa36a97SAlex Deucher	vce_v3_0.o
73d38ceaf9SAlex Deucher
74d38ceaf9SAlex Deucheramdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o
75d38ceaf9SAlex Deucheramdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
76d38ceaf9SAlex Deucheramdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
77d38ceaf9SAlex Deucheramdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o
78d38ceaf9SAlex Deucher
79d38ceaf9SAlex Deucherobj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
80d38ceaf9SAlex Deucher
81d38ceaf9SAlex DeucherCFLAGS_amdgpu_trace_points.o := -I$(src)
82