drm/i915/icl: Add DSI packet payload/header registers
authorMadhav Chauhan <madhav.chauhan@intel.com>
Tue, 30 Oct 2018 11:56:26 +0000 (13:56 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 1 Nov 2018 10:23:17 +0000 (12:23 +0200)
This patch defines payload/header registers for each DSI
transcoder used for transmitting DSI packets.

v2 by Jani:
 - Drop full register mask and shift for payload
 - Use lower case for hex 0x

Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/18275c49215e512347a14bc38715314c2d6f95a4.1540900289.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_reg.h

index 6f2e6233f4f5dd4fa306400fa298ce85e811fe61..af6bf8301d338270db3b5ccebe95d7edf9830a18 100644 (file)
@@ -10527,6 +10527,28 @@ enum skl_power_gate {
 #define  MAX_HEADER_CREDIT             0x10
 #define  MAX_PLOAD_CREDIT              0x40
 
+#define _DSI_CMD_TXHDR_0               0x6b100
+#define _DSI_CMD_TXHDR_1               0x6b900
+#define DSI_CMD_TXHDR(tc)              _MMIO_DSI(tc,   \
+                                                 _DSI_CMD_TXHDR_0,\
+                                                 _DSI_CMD_TXHDR_1)
+#define  PAYLOAD_PRESENT               (1 << 31)
+#define  LP_DATA_TRANSFER              (1 << 30)
+#define  VBLANK_FENCE                  (1 << 29)
+#define  PARAM_WC_MASK                 (0xffff << 8)
+#define  PARAM_WC_LOWER_SHIFT          8
+#define  PARAM_WC_UPPER_SHIFT          16
+#define  VC_MASK                       (0x3 << 6)
+#define  VC_SHIFT                      6
+#define  DT_MASK                       (0x3f << 0)
+#define  DT_SHIFT                      0
+
+#define _DSI_CMD_TXPYLD_0              0x6b104
+#define _DSI_CMD_TXPYLD_1              0x6b904
+#define DSI_CMD_TXPYLD(tc)             _MMIO_DSI(tc,   \
+                                                 _DSI_CMD_TXPYLD_0,\
+                                                 _DSI_CMD_TXPYLD_1)
+
 #define _DSI_LP_MSG_0                  0x6b0d8
 #define _DSI_LP_MSG_1                  0x6b8d8
 #define DSI_LP_MSG(tc)                 _MMIO_DSI(tc,   \