drm/amd/display: Add I2C memory low power support
authorJacky Liao <ziyu.liao@amd.com>
Tue, 27 Oct 2020 14:56:18 +0000 (10:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2020 17:19:22 +0000 (12:19 -0500)
commitaf435e3f62525cace7d9b2a7bbfe28aee59eb1a7
tree5f41587a5c24be4cb0fbeebb238cfea1b40343e7
parent65e870dfa6741e0c1199946faa4a1113bfb23916
drm/amd/display: Add I2C memory low power support

[Why]
The I2C memory blocks should be powered down when they are not in use.
This will reduce power consumption.

[How]
1. Write to I2C_LIGHT_SLEEP_FORCE to put memory in light sleep when
   released
2. Added a debug option to allow this behaviour to be turned off

Signed-off-by: Jacky Liao <ziyu.liao@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c