Skip to content

Commit

Permalink
drm/dp: Add drm_dp_alternate_scrambler_reset_cap() helper
Browse files Browse the repository at this point in the history
Add a helper to check if the sink supports the eDP alternate scrambler
reset value of 0xfffe.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021143437.1477719-6-thierry.reding@gmail.com
  • Loading branch information
Thierry Reding committed Oct 23, 2019
1 parent 99c830b commit 7624629
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/drm/drm_dp_helper.h
Original file line number Diff line number Diff line change
@@ -1294,6 +1294,13 @@ drm_dp_channel_coding_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
return dpcd[DP_MAIN_LINK_CHANNEL_CODING] & DP_CAP_ANSI_8B10B;
}

static inline bool
drm_dp_alternate_scrambler_reset_cap(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
{
return dpcd[DP_EDP_CONFIGURATION_CAP] &
DP_ALTERNATE_SCRAMBLER_RESET_CAP;
}

/*
* DisplayPort AUX channel
*/

0 comments on commit 7624629

Please sign in to comment.