Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Extend I915 mei interface for transcoder info

I915 needs to send the index of the transcoder as per ME FW.

To support this, define enum mei_fw_tc and add as a member into
the struct hdcp_port_data.

v2:
Typo in commit msg is fixed [Shashank]
v3:
kdoc is added for mei_fw_tc [Tomas]
s/MEI_TC_x/MEI_TRANSCODER_x

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190828164216.405-4-ramalingam.c@intel.com

authored by

Ramalingam C and committed by
Uma Shankar
807c71d5 5b6030da

+24
+24
include/drm/i915_mei_hdcp_interface.h
··· 55 55 }; 56 56 57 57 /** 58 + * enum mei_fw_tc - ME Firmware defined index for transcoders 59 + * @MEI_INVALID_TRANSCODER: Index for Invalid transcoder 60 + * @MEI_TRANSCODER_EDP: Index for EDP Transcoder 61 + * @MEI_TRANSCODER_DSI0: Index for DSI0 Transcoder 62 + * @MEI_TRANSCODER_DSI1: Index for DSI1 Transcoder 63 + * @MEI_TRANSCODER_A: Index for Transcoder A 64 + * @MEI_TRANSCODER_B: Index for Transcoder B 65 + * @MEI_TRANSCODER_C: Index for Transcoder C 66 + * @MEI_TRANSCODER_D: Index for Transcoder D 67 + */ 68 + enum mei_fw_tc { 69 + MEI_INVALID_TRANSCODER = 0x00, 70 + MEI_TRANSCODER_EDP, 71 + MEI_TRANSCODER_DSI0, 72 + MEI_TRANSCODER_DSI1, 73 + MEI_TRANSCODER_A = 0x10, 74 + MEI_TRANSCODER_B, 75 + MEI_TRANSCODER_C, 76 + MEI_TRANSCODER_D 77 + }; 78 + 79 + /** 58 80 * struct hdcp_port_data - intel specific HDCP port data 59 81 * @fw_ddi: ddi index as per ME FW 82 + * @fw_tc: transcoder index as per ME FW 60 83 * @port_type: HDCP port type as per ME FW classification 61 84 * @protocol: HDCP adaptation as per ME FW 62 85 * @k: No of streams transmitted on a port. Only on DP MST this is != 1 ··· 92 69 */ 93 70 struct hdcp_port_data { 94 71 enum mei_fw_ddi fw_ddi; 72 + enum mei_fw_tc fw_tc; 95 73 u8 port_type; 96 74 u8 protocol; 97 75 u16 k;