diff options
Diffstat (limited to 'common/recipes-kernel/linux/files/0825-drm-amd-amdgpu-Route-dal-i2c-through-drm-s-i2cadapte.patch')
-rw-r--r-- | common/recipes-kernel/linux/files/0825-drm-amd-amdgpu-Route-dal-i2c-through-drm-s-i2cadapte.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0825-drm-amd-amdgpu-Route-dal-i2c-through-drm-s-i2cadapte.patch b/common/recipes-kernel/linux/files/0825-drm-amd-amdgpu-Route-dal-i2c-through-drm-s-i2cadapte.patch new file mode 100644 index 00000000..90552fca --- /dev/null +++ b/common/recipes-kernel/linux/files/0825-drm-amd-amdgpu-Route-dal-i2c-through-drm-s-i2cadapte.patch @@ -0,0 +1,42 @@ +From 3273b17218edaeb42526187dd77fe0f87992e063 Mon Sep 17 00:00:00 2001 +From: Harry Wentland <harry.wentland@amd.com> +Date: Thu, 18 Feb 2016 15:46:44 -0500 +Subject: [PATCH 0825/1110] drm/amd/amdgpu: Route dal i2c through drm's + i2cadapter + +Signed-off-by: Harry Wentland <harry.wentland@amd.com> +Acked-by: Jordan Lazare <Jordan.Lazare@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +index 61c2345..076d2c0 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +@@ -521,6 +521,12 @@ struct amdgpu_dm_dp_aux { + uint32_t link_index; + }; + ++struct amdgpu_i2c_adapter { ++ struct i2c_adapter base; ++ struct amdgpu_display_manager *dm; ++ uint32_t link_index; ++}; ++ + #define TO_DM_AUX(x) container_of((x), struct amdgpu_dm_dp_aux, aux) + + struct amdgpu_connector { +@@ -559,6 +565,9 @@ struct amdgpu_connector { + bool is_mst_connector; + struct amdgpu_encoder *mst_encoder; + struct semaphore mst_sem; ++ ++ /* TODO see if we can merge with ddc_bus or make a dm_connector */ ++ struct amdgpu_i2c_adapter *i2c; + }; + + /* TODO: start to use this struct and remove same field from base one */ +-- +2.7.4 + |