drm: bridge: dw-hdmi: add hdcp1.4 support
authorxuhuicong <xhc@rock-chips.com>
Fri, 7 Apr 2017 08:42:21 +0000 (16:42 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 16 Jun 2017 06:41:15 +0000 (14:41 +0800)
commit1f58bcd52f652ff32c9527e4c1b096850710b2ad
tree70436dbf18d6da6e5f4ebc785dbdc36d8225ef0a
parent428fab17d9c9c5faa3f0b79536a74154fab70866
drm: bridge: dw-hdmi: add hdcp1.4 support

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 <xhc@rock-chips.com>
drivers/gpu/drm/bridge/Makefile
drivers/gpu/drm/bridge/dw-hdmi-hdcp.c [new file with mode: 0644]
drivers/gpu/drm/bridge/dw-hdmi-hdcp.h [new file with mode: 0644]
drivers/gpu/drm/bridge/dw-hdmi.c