]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b50d00c25271c798920004e810a030935810fe3
tree5f41587a5c24be4cb0fbeebb238cfea1b40343e7
parentc58881d0367f94438fd7fa4a3169eceab9c74afb
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