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