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