aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h
diff options
context:
space:
mode:
authorVenkata Narendra Kumar Gutta <[email protected]>2024-06-19 01:16:52 +0000
committerAlex Deucher <[email protected]>2024-07-27 21:28:58 +0000
commit25dd25f86eca77b1ce4a611432f57b006fa91615 (patch)
treef6041c780dd155b24f2f9a58ca7e383198ec04a8 /drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h
parentdrm/amdgpu: fix contiguous handling for IB parsing v2 (diff)
downloadkernel-25dd25f86eca77b1ce4a611432f57b006fa91615.tar.gz
kernel-25dd25f86eca77b1ce4a611432f57b006fa91615.zip
drm/amdgpu: Add MFD support for ISP I2C bus
ISP I2C bus device can't be enumerated via ACPI mechanism since it shares the memory map with the AMDGPU. So use the MFD mechanism for registering the ISP I2C device and add the required resources. Signed-off-by: Venkata Narendra Kumar Gutta <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h b/drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h
index 315f2822410c..7db24c0f1080 100644
--- a/drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h
+++ b/drivers/gpu/drm/amd/amdgpu/isp_v4_1_0.h
@@ -32,8 +32,19 @@
#include "ivsrcid/isp/irqsrcs_isp_4_1.h"
+#define MAX_ISP410_MEM_RES 2
+#define MAX_ISP410_SENSOR_RES 1
#define MAX_ISP410_INT_SRC 8
+#define ISP410_PHY0_OFFSET 0x66700
+#define ISP410_PHY0_SIZE 0xD30
+
+#define ISP410_I2C0_OFFSET 0x66400
+#define ISP410_I2C0_SIZE 0x100
+
+#define ISP410_GPIO_SENSOR0_OFFSET 0x6613C
+#define ISP410_GPIO_SENSOR0_SIZE 0x4
+
void isp_v4_1_0_set_isp_funcs(struct amdgpu_isp *isp);
#endif