diff options
| author | Pratap Nirujogi <[email protected]> | 2025-05-29 19:21:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-06-24 14:02:50 +0000 |
| commit | fd14786071021bb63b0ab32b95257a594e46f8d4 (patch) | |
| tree | fcf448df35fcefa19053763f8e4faa311c450045 /drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | |
| parent | drm/amd/pm: Add support to set min ISP clocks (diff) | |
| download | kernel-fd14786071021bb63b0ab32b95257a594e46f8d4.tar.gz kernel-fd14786071021bb63b0ab32b95257a594e46f8d4.zip | |
drm/amd/amdgpu: Add ISP Generic PM Domain (genpd) support
AMDISP I2C device requires to power on ISP HW to probe the sensor
device. Instead of using the exported symbols from ISP driver to
control the power and clocks remotely,added Generic PM Domain (genpd)
support in amdgpu_isp device for its child devices (amd_isp_capture,
amd_isp_i2c_designware) to set power and clocks using PM methods.
Co-developed-by: Bin Du <[email protected]>
Signed-off-by: Bin Du <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Signed-off-by: Pratap Nirujogi <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h index 4f3b7b5d9c1f..1d1c4b1ec7e7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_isp.h @@ -28,6 +28,8 @@ #ifndef __AMDGPU_ISP_H__ #define __AMDGPU_ISP_H__ +#include <linux/pm_domain.h> + #define ISP_REGS_OFFSET_END 0x629A4 struct amdgpu_isp; @@ -54,6 +56,7 @@ struct amdgpu_isp { struct isp_platform_data *isp_pdata; unsigned int harvest_config; const struct firmware *fw; + struct generic_pm_domain ispgpd; }; extern const struct amdgpu_ip_block_version isp_v4_1_0_ip_block; |
