Skip to content

Commit

Permalink
drm: bridge: dw-hdmi: add hdcp1.4 support
Browse files Browse the repository at this point in the history
First, write hdcp key by "ProvisioningTool" if you want to
enable hdcp function, or else will auth fail.

To check whether the hdcp is enable or not
  #cat /sys/class/misc/hdmi_hdcp1x/enable
  0:hdcp is disabled
  1:hdcp is enabled, hdmi screen will be pink if it is failed;
  2:hdcp is enabled, hdmi screen will be normal if it is failed;

Enable or disable hdcp function
  #echo 0 > /sys/class/misc/hdmi_hdcp1x/enable
  #echo 1 > /sys/class/misc/hdmi_hdcp1x/enable
  #echo 2 > /sys/class/misc/hdmi_hdcp1x/enable

Get the status of hdcp
  #cat /sys/class/misc/hdmi_hdcp1x/status
  The result will be one of the follow list:
    hdcp disable;
    hdcp_auth_start
    hdcp_auth_success;
    hdcp_auth_fail;
    unknown status.

Change-Id: Iac6c7d6a1196ce9cf2869d7916bbe6c8941ec13b
Signed-off-by: xuhuicong <[email protected]>
  • Loading branch information
xuhuicong authored and rkhuangtao committed Jun 16, 2017
1 parent 428fab1 commit 1f58bcd
Show file tree
Hide file tree
Showing 4 changed files with 893 additions and 29 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/bridge/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ccflags-y := -Iinclude/drm

obj-$(CONFIG_DRM_DW_HDMI) += dw-hdmi.o
obj-$(CONFIG_DRM_DW_HDMI) += dw-hdmi.o dw-hdmi-hdcp.o
obj-$(CONFIG_DRM_DW_HDMI_AHB_AUDIO) += dw-hdmi-ahb-audio.o
obj-$(CONFIG_DRM_DW_HDMI_I2S_AUDIO) += dw-hdmi-i2s-audio.o
obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o
Expand Down
Loading

0 comments on commit 1f58bcd

Please sign in to comment.