Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 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 | |
yanyang1 | 5fc3aee | 2015-05-22 14:39:35 -0400 | [diff] [blame] | 5 | ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/asic_reg \ |
Alex Deucher | 8e9198d | 2015-08-16 22:51:50 -0400 | [diff] [blame] | 6 | -Idrivers/gpu/drm/amd/include \ |
| 7 | -Idrivers/gpu/drm/amd/amdgpu |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 8 | |
| 9 | amdgpu-y := amdgpu_drv.o |
| 10 | |
| 11 | # add KMS driver |
| 12 | amdgpu-y += amdgpu_device.o amdgpu_kms.o \ |
| 13 | amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \ |
| 14 | atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \ |
| 15 | amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \ |
| 16 | amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \ |
| 17 | amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \ |
| 18 | amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \ |
| 19 | atombios_encoders.o amdgpu_semaphore.o amdgpu_sa.o atombios_i2c.o \ |
| 20 | amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \ |
| 21 | amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o |
| 22 | |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 23 | # add asic specific block |
Alex Deucher | a2e73f5 | 2015-04-20 17:09:27 -0400 | [diff] [blame] | 24 | amdgpu-$(CONFIG_DRM_AMDGPU_CIK)+= cik.o gmc_v7_0.o cik_ih.o kv_smc.o kv_dpm.o \ |
Alex Deucher | 41548ef | 2015-07-31 17:20:14 -0400 | [diff] [blame] | 25 | 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 \ |
| 26 | amdgpu_amdkfd_gfx_v7.o |
Alex Deucher | a2e73f5 | 2015-04-20 17:09:27 -0400 | [diff] [blame] | 27 | |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 28 | amdgpu-y += \ |
| 29 | vi.o |
| 30 | |
| 31 | # add GMC block |
| 32 | amdgpu-y += \ |
| 33 | gmc_v8_0.o |
| 34 | |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 35 | # add IH block |
| 36 | amdgpu-y += \ |
| 37 | amdgpu_irq.o \ |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 38 | amdgpu_ih.o \ |
| 39 | iceland_ih.o \ |
| 40 | tonga_ih.o \ |
| 41 | cz_ih.o |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 42 | |
| 43 | # add SMC block |
| 44 | amdgpu-y += \ |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 45 | amdgpu_dpm.o \ |
| 46 | cz_smc.o cz_dpm.o \ |
| 47 | tonga_smc.o tonga_dpm.o \ |
David Zhang | 8e711e1a | 2015-07-08 01:23:25 +0800 | [diff] [blame^] | 48 | fiji_smc.o fiji_dpm.o \ |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 49 | iceland_smc.o iceland_dpm.o |
| 50 | |
| 51 | # add DCE block |
| 52 | amdgpu-y += \ |
| 53 | dce_v10_0.o \ |
| 54 | dce_v11_0.o |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 55 | |
| 56 | # add GFX block |
| 57 | amdgpu-y += \ |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 58 | amdgpu_gfx.o \ |
| 59 | gfx_v8_0.o |
| 60 | |
| 61 | # add async DMA block |
| 62 | amdgpu-y += \ |
| 63 | sdma_v2_4.o \ |
| 64 | sdma_v3_0.o |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 65 | |
| 66 | # add UVD block |
| 67 | amdgpu-y += \ |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 68 | amdgpu_uvd.o \ |
| 69 | uvd_v5_0.o \ |
| 70 | uvd_v6_0.o |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 71 | |
| 72 | # add VCE block |
| 73 | amdgpu-y += \ |
Alex Deucher | aaa36a9 | 2015-04-20 17:31:14 -0400 | [diff] [blame] | 74 | amdgpu_vce.o \ |
| 75 | vce_v3_0.o |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 76 | |
Oded Gabbay | 130e037 | 2015-06-12 21:35:14 +0300 | [diff] [blame] | 77 | # add amdkfd interfaces |
| 78 | amdgpu-y += \ |
Oded Gabbay | 32c22e9 | 2015-06-12 21:38:22 +0300 | [diff] [blame] | 79 | amdgpu_amdkfd.o \ |
Ben Goz | ff758a1 | 2014-10-07 14:43:07 +0300 | [diff] [blame] | 80 | amdgpu_amdkfd_gfx_v8.o |
Oded Gabbay | 130e037 | 2015-06-12 21:35:14 +0300 | [diff] [blame] | 81 | |
Chunming Zhou | d03846a | 2015-07-28 14:20:03 -0400 | [diff] [blame] | 82 | # add cgs |
| 83 | amdgpu-y += amdgpu_cgs.o |
| 84 | |
Alex Deucher | d38ceaf | 2015-04-20 16:55:21 -0400 | [diff] [blame] | 85 | amdgpu-$(CONFIG_COMPAT) += amdgpu_ioc32.o |
| 86 | amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o |
| 87 | amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o |
| 88 | amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o |
| 89 | |
| 90 | obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o |
| 91 | |
| 92 | CFLAGS_amdgpu_trace_points.o := -I$(src) |