drm/amd/powerplay: add basic powerplay framework
[linux-2.6-block.git] / drivers / gpu / drm / amd / amdgpu / Makefile
index a5c3aa0de773272779c8fc8a3bece1ebeed85294..16603a0f87e7f5e1321f7673100b5d3ffb17aece 100644 (file)
@@ -7,7 +7,8 @@ FULL_AMD_PATH=$(src)/..
 ccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \
        -I$(FULL_AMD_PATH)/include \
        -I$(FULL_AMD_PATH)/amdgpu \
-       -I$(FULL_AMD_PATH)/scheduler
+       -I$(FULL_AMD_PATH)/scheduler \
+       -I$(FULL_AMD_PATH)/powerplay/inc
 
 amdgpu-y := amdgpu_drv.o
 
@@ -46,6 +47,7 @@ amdgpu-y += \
 # add SMC block
 amdgpu-y += \
        amdgpu_dpm.o \
+       amdgpu_powerplay.o \
        cz_smc.o cz_dpm.o \
        tonga_smc.o tonga_dpm.o \
        fiji_smc.o fiji_dpm.o \
@@ -96,6 +98,14 @@ amdgpu-$(CONFIG_VGA_SWITCHEROO) += amdgpu_atpx_handler.o
 amdgpu-$(CONFIG_ACPI) += amdgpu_acpi.o
 amdgpu-$(CONFIG_MMU_NOTIFIER) += amdgpu_mn.o
 
+ifneq ($(CONFIG_DRM_AMD_POWERPLAY),)
+
+include drivers/gpu/drm/amd/powerplay/Makefile
+
+amdgpu-y += $(AMD_POWERPLAY_FILES)
+
+endif
+
 obj-$(CONFIG_DRM_AMDGPU)+= amdgpu.o
 
 CFLAGS_amdgpu_trace_points.o := -I$(src)