]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/i915: Move gmbus definitions out of i915_reg.h
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 16 Aug 2019 01:23:40 +0000 (18:23 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Aug 2019 20:52:49 +0000 (21:52 +0100)
They're not related to registers, so move them to the more appropriate
intel_gmbus.h

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190816012343.36433-4-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/display/intel_gmbus.h
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h

index d989085b8d225ba125cc54d6a1a32320a05969e9..b96212b854253b0c053b9e7f1bdba48200eb3a71 100644 (file)
 struct drm_i915_private;
 struct i2c_adapter;
 
+#define GMBUS_PIN_DISABLED     0
+#define GMBUS_PIN_SSC          1
+#define GMBUS_PIN_VGADDC       2
+#define GMBUS_PIN_PANEL                3
+#define GMBUS_PIN_DPD_CHV      3 /* HDMID_CHV */
+#define GMBUS_PIN_DPC          4 /* HDMIC */
+#define GMBUS_PIN_DPB          5 /* SDVO, HDMIB */
+#define GMBUS_PIN_DPD          6 /* HDMID */
+#define GMBUS_PIN_RESERVED     7 /* 7 reserved */
+#define GMBUS_PIN_1_BXT                1 /* BXT+ (atom) and CNP+ (big core) */
+#define GMBUS_PIN_2_BXT                2
+#define GMBUS_PIN_3_BXT                3
+#define GMBUS_PIN_4_CNP                4
+#define GMBUS_PIN_9_TC1_ICP    9
+#define GMBUS_PIN_10_TC2_ICP   10
+#define GMBUS_PIN_11_TC3_ICP   11
+#define GMBUS_PIN_12_TC4_ICP   12
+#define GMBUS_PIN_13_TC5_TGP   13
+#define GMBUS_PIN_14_TC6_TGP   14
+
+#define GMBUS_NUM_PINS 15 /* including 0 */
+
 int intel_gmbus_setup(struct drm_i915_private *dev_priv);
 void intel_gmbus_teardown(struct drm_i915_private *dev_priv);
 bool intel_gmbus_is_valid_pin(struct drm_i915_private *dev_priv,
index b6beae12cd2190c28c45491c4cd5beb73f9b5432..3064b5a70a179dce657478acec4d62f428d5f020 100644 (file)
@@ -68,6 +68,7 @@
 #include "display/intel_display_power.h"
 #include "display/intel_dpll_mgr.h"
 #include "display/intel_frontbuffer.h"
+#include "display/intel_gmbus.h"
 #include "display/intel_opregion.h"
 
 #include "gem/i915_gem_context_types.h"
index 827795262d68515b6c20ac5147001b1284685418..ea2f0fa2402d2bbf37cdd3423cb8de027452068b 100644 (file)
@@ -3207,27 +3207,7 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
 #define   GMBUS_RATE_1MHZ      (3 << 8) /* reserved on Pineview */
 #define   GMBUS_HOLD_EXT       (1 << 7) /* 300ns hold time, rsvd on Pineview */
 #define   GMBUS_BYTE_CNT_OVERRIDE (1 << 6)
-#define   GMBUS_PIN_DISABLED   0
-#define   GMBUS_PIN_SSC                1
-#define   GMBUS_PIN_VGADDC     2
-#define   GMBUS_PIN_PANEL      3
-#define   GMBUS_PIN_DPD_CHV    3 /* HDMID_CHV */
-#define   GMBUS_PIN_DPC                4 /* HDMIC */
-#define   GMBUS_PIN_DPB                5 /* SDVO, HDMIB */
-#define   GMBUS_PIN_DPD                6 /* HDMID */
-#define   GMBUS_PIN_RESERVED   7 /* 7 reserved */
-#define   GMBUS_PIN_1_BXT      1 /* BXT+ (atom) and CNP+ (big core) */
-#define   GMBUS_PIN_2_BXT      2
-#define   GMBUS_PIN_3_BXT      3
-#define   GMBUS_PIN_4_CNP      4
-#define   GMBUS_PIN_9_TC1_ICP  9
-#define   GMBUS_PIN_10_TC2_ICP 10
-#define   GMBUS_PIN_11_TC3_ICP 11
-#define   GMBUS_PIN_12_TC4_ICP 12
-#define   GMBUS_PIN_13_TC5_TGP 13
-#define   GMBUS_PIN_14_TC6_TGP 14
-
-#define   GMBUS_NUM_PINS       15 /* including 0 */
+
 #define GMBUS1                 _MMIO(dev_priv->gpio_mmio_base + 0x5104) /* command/status */
 #define   GMBUS_SW_CLR_INT     (1 << 31)
 #define   GMBUS_SW_RDY         (1 << 30)