Skip to content

Commit 44810f8

Browse files
committed
drm/amd/display/dc: add a new helper to fetch the OEM ddc_service
This is the i2c bus used by OEMs for board specific i2c features like RGB. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 33da70b commit 44810f8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ bool dc_link_update_dsc_config(struct pipe_ctx *pipe_ctx)
150150
return link->dc->link_srv->update_dsc_config(pipe_ctx);
151151
}
152152

153+
struct ddc_service *
154+
dc_get_oem_i2c_device(struct dc *dc)
155+
{
156+
return dc->res_pool->oem_device;
157+
}
158+
153159
bool dc_is_oem_i2c_device_present(
154160
struct dc *dc,
155161
size_t slave_address)

drivers/gpu/drm/amd/display/dc/dc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,9 @@ int dc_link_aux_transfer_raw(struct ddc_service *ddc,
19471947
struct aux_payload *payload,
19481948
enum aux_return_code_type *operation_result);
19491949

1950+
struct ddc_service *
1951+
dc_get_oem_i2c_device(struct dc *dc);
1952+
19501953
bool dc_is_oem_i2c_device_present(
19511954
struct dc *dc,
19521955
size_t slave_address

0 commit comments

Comments
 (0)