11.1Sriastrad# 21.1Sriastrad# Copyright 2017 Advanced Micro Devices, Inc. 31.1Sriastrad# 41.1Sriastrad# Permission is hereby granted, free of charge, to any person obtaining a 51.1Sriastrad# copy of this software and associated documentation files (the "Software"), 61.1Sriastrad# to deal in the Software without restriction, including without limitation 71.1Sriastrad# the rights to use, copy, modify, merge, publish, distribute, sublicense, 81.1Sriastrad# and/or sell copies of the Software, and to permit persons to whom the 91.1Sriastrad# Software is furnished to do so, subject to the following conditions: 101.1Sriastrad# 111.1Sriastrad# The above copyright notice and this permission notice shall be included in 121.1Sriastrad# all copies or substantial portions of the Software. 131.1Sriastrad# 141.1Sriastrad# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 151.1Sriastrad# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 161.1Sriastrad# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 171.1Sriastrad# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 181.1Sriastrad# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 191.1Sriastrad# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 201.1Sriastrad# OTHER DEALINGS IN THE SOFTWARE. 211.1Sriastrad# 221.1Sriastrad 231.1Sriastradsubdir-ccflags-y += \ 241.1Sriastrad -I$(FULL_AMD_PATH)/powerplay/inc/ \ 251.1Sriastrad -I$(FULL_AMD_PATH)/include/asic_reg \ 261.1Sriastrad -I$(FULL_AMD_PATH)/include \ 271.1Sriastrad -I$(FULL_AMD_PATH)/powerplay/smumgr\ 281.1Sriastrad -I$(FULL_AMD_PATH)/powerplay/hwmgr 291.1Sriastrad 301.1SriastradAMD_PP_PATH = ../powerplay 311.1Sriastrad 321.1SriastradPP_LIBS = smumgr hwmgr 331.1Sriastrad 341.1SriastradAMD_POWERPLAY = $(addsuffix /Makefile,$(addprefix $(FULL_AMD_PATH)/powerplay/,$(PP_LIBS))) 351.1Sriastrad 361.1Sriastradinclude $(AMD_POWERPLAY) 371.1Sriastrad 381.1SriastradPOWER_MGR = amd_powerplay.o amdgpu_smu.o smu_v11_0.o smu_v12_0.o vega20_ppt.o arcturus_ppt.o navi10_ppt.o renoir_ppt.o 391.1Sriastrad 401.1SriastradAMD_PP_POWER = $(addprefix $(AMD_PP_PATH)/,$(POWER_MGR)) 411.1Sriastrad 421.1SriastradAMD_POWERPLAY_FILES += $(AMD_PP_POWER) 43