summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/Makefile
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2015-12-02 23:46:21 +0100
committerAlex Deucher <alexander.deucher@amd.com>2015-12-21 22:42:07 +0100
commit1f7371b2a5faf139465f0af386cccbb54b832534 (patch)
treecd04371e55d1db6a1b6fe12cd6e849b6e30ba9c3 /drivers/gpu/drm/amd/powerplay/Makefile
parentdrm/amdgpu: add new cgs interface to get display info (v2) (diff)
downloadlinux-1f7371b2a5faf139465f0af386cccbb54b832534.tar.xz
linux-1f7371b2a5faf139465f0af386cccbb54b832534.zip
drm/amd/powerplay: add basic powerplay framework
amdgpu_pp_ip_funcs is introduced to handle the two code paths, the legacy one and the new powerplay implementation. CONFIG_DRM_AMD_POWERPLAY kernel configuration option is introduced for the powerplay component. v4: squash in fixes v3: register debugfs file when powerplay module enable v2: add amdgpu_ucode_init_bo in hw init when amdgpu_powerplay enable. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/Makefile')
-rw-r--r--drivers/gpu/drm/amd/powerplay/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/Makefile b/drivers/gpu/drm/amd/powerplay/Makefile
new file mode 100644
index 000000000000..e7428a149b62
--- /dev/null
+++ b/drivers/gpu/drm/amd/powerplay/Makefile
@@ -0,0 +1,15 @@
+
+subdir-ccflags-y += -Iinclude/drm \
+ -Idrivers/gpu/drm/amd/powerplay/inc/ \
+ -Idrivers/gpu/drm/amd/include/asic_reg \
+ -Idrivers/gpu/drm/amd/include
+
+AMD_PP_PATH = ../powerplay
+
+include $(AMD_POWERPLAY)
+
+POWER_MGR = amd_powerplay.o
+
+AMD_PP_POWER = $(addprefix $(AMD_PP_PATH)/,$(POWER_MGR))
+
+AMD_POWERPLAY_FILES += $(AMD_PP_POWER)