drm/amd/pm: enable ac/dc switching for SMU 13.0.0
authorEvan Quan <evan.quan@amd.com>
Fri, 1 Apr 2022 02:02:28 +0000 (10:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:50:28 +0000 (16:50 -0400)
commitb538995d8d43098b7c3e787960108c40bee53003
tree0d903589d34afed49cbf897bf0f1046033b810e9
parentfcd1ac96ccec4e761fd840a26f8b523df74d1d91
drm/amd/pm: enable ac/dc switching for SMU 13.0.0

Fulfill the ->set_power_source interface which notifies
PMFW the current system power source(AC/DC).

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c