Make it possible to add a HWSS function to prepare the DDC
before trying to use it. This is going to be necessary for
external DP bridge encoders.
This commit just adds the function to common DC code.
The actual implementation of this function for DCE is
done in a subsequent commit.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
else
ddc = &aconnector->i2c->base;
+ if (link->dc->hwss.prepare_ddc)
+ link->dc->hwss.prepare_ddc(link);
+
/* some dongles read edid incorrectly the first time,
* do check sum and retry to make sure read correct edid.
*/
const struct link_resource *link_res,
enum signal_type signal);
bool (*dac_load_detect)(struct dc_link *link);
+ void (*prepare_ddc)(struct dc_link *link);
void (*get_dcc_en_bits)(struct dc *dc, int *dcc_en_bits);
if (!link->ddc)
return false;
+ if (link->dc->hwss.prepare_ddc)
+ link->dc->hwss.prepare_ddc(link);
+
set_ddc_transaction_type(link->ddc, transaction_type);
ddc_probed = link_query_ddc_data(link->ddc, 0x50, &zero, 1, edid_header, sizeof(edid_header));