From 2dec77bf656d2fa360f782777ba5afa815839dec Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Fri, 12 May 2017 00:44:56 -0700 Subject: drivers/misc: make the HDCP lib a standalone driver Currently the hdcp lib doesn't have a context and just acts as a lib for HDCP compliant interfaces like HDMI and Display Port. Make this lib a standalone driver capable of supporting sysfs nodes to make communication with other modules like TZ easier and less roundabout. Change-Id: If693a9d4c8561e6d8c94e236a0fc108c8a65c05e Signed-off-by: Abhinav Kumar --- .../devicetree/bindings/msm_hdcp/msm_hdcp.txt | 14 ++ drivers/misc/hdcp.c | 256 +++++++++++++++++++++ include/linux/hdcp_qseecom.h | 5 +- 3 files changed, 273 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/msm_hdcp/msm_hdcp.txt diff --git a/Documentation/devicetree/bindings/msm_hdcp/msm_hdcp.txt b/Documentation/devicetree/bindings/msm_hdcp/msm_hdcp.txt new file mode 100644 index 000000000000..8d5f55d7a8ca --- /dev/null +++ b/Documentation/devicetree/bindings/msm_hdcp/msm_hdcp.txt @@ -0,0 +1,14 @@ +MSM HDCP driver + +Standalone driver managing HDCP related communications +between TZ and HLOS for MSM chipset. + +Required properties: + +compatible = "qcom,msm-hdcp"; + +Example: + +qcom_msmhdcp: qcom,msm_hdcp { + compatible = "qcom,msm-hdcp"; +}; diff --git a/drivers/misc/hdcp.c b/drivers/misc/hdcp.c index 6dabb92bc8ce..77ce6b34503c 100644 --- a/drivers/misc/hdcp.c +++ b/drivers/misc/hdcp.c @@ -12,10 +12,13 @@ #define pr_fmt(fmt) "%s: " fmt, __func__ +#include #include #include #include #include +#include +#include #include #include #include @@ -30,9 +33,26 @@ #include #include #include +#include +#include