]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: give G45 and GM45 their own platform enums
authorJani Nikula <jani.nikula@intel.com>
Wed, 30 Nov 2016 15:43:05 +0000 (17:43 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 7 Dec 2016 13:19:51 +0000 (15:19 +0200)
Distinguish them better.

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/987709804bc8fe55475e7481fcee03e7b86b1ba3.1480520526.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.c

index e2a99649d59457b9b652f560560c18b20de6f2b8..01e9f5b11f354f05ecfb226deaac4d4791745102 100644 (file)
@@ -757,7 +757,8 @@ enum intel_platform {
        INTEL_PINEVIEW,
        INTEL_I965G,
        INTEL_I965GM,
-       INTEL_G4X,
+       INTEL_G45,
+       INTEL_GM45,
        INTEL_IRONLAKE,
        INTEL_SANDYBRIDGE,
        INTEL_IVYBRIDGE,
@@ -2524,8 +2525,9 @@ intel_info(const struct drm_i915_private *dev_priv)
 #define IS_I945GM(dev_priv)    ((dev_priv)->info.platform == INTEL_I945GM)
 #define IS_I965G(dev_priv)     ((dev_priv)->info.platform == INTEL_I965G)
 #define IS_I965GM(dev_priv)    ((dev_priv)->info.platform == INTEL_I965GM)
-#define IS_GM45(dev_priv)      (INTEL_DEVID(dev_priv) == 0x2A42)
-#define IS_G4X(dev_priv)       ((dev_priv)->info.platform == INTEL_G4X)
+#define IS_G45(dev_priv)       ((dev_priv)->info.platform == INTEL_G45)
+#define IS_GM45(dev_priv)      ((dev_priv)->info.platform == INTEL_GM45)
+#define IS_G4X(dev_priv)       (IS_G45(dev_priv) || IS_GM45(dev_priv))
 #define IS_PINEVIEW_G(dev_priv)        (INTEL_DEVID(dev_priv) == 0xa001)
 #define IS_PINEVIEW_M(dev_priv)        (INTEL_DEVID(dev_priv) == 0xa011)
 #define IS_PINEVIEW(dev_priv)  ((dev_priv)->info.is_pineview)
index 2bf9b75ac392c2f5816a89369da9b80eaecd6a8c..f7ec6e944e099df863865b05b2479ee23ffceec9 100644 (file)
@@ -172,14 +172,14 @@ static const struct intel_device_info intel_i965gm_info = {
 
 static const struct intel_device_info intel_g45_info = {
        GEN4_FEATURES,
-       .platform = INTEL_G4X,
+       .platform = INTEL_G45,
        .has_pipe_cxsr = 1,
        .ring_mask = RENDER_RING | BSD_RING,
 };
 
 static const struct intel_device_info intel_gm45_info = {
        GEN4_FEATURES,
-       .platform = INTEL_G4X,
+       .platform = INTEL_GM45,
        .is_mobile = 1, .has_fbc = 1,
        .has_pipe_cxsr = 1,
        .supports_tv = 1,
index 6f4cd4fca9577404e7d3edee76d321422645746b..c46415b8c1b93bb4309719f2e56fef4b8b927ee3 100644 (file)
@@ -38,7 +38,8 @@ static const char * const platform_names[] = {
        PLATFORM_NAME(PINEVIEW),
        PLATFORM_NAME(I965G),
        PLATFORM_NAME(I965GM),
-       PLATFORM_NAME(G4X),
+       PLATFORM_NAME(G45),
+       PLATFORM_NAME(GM45),
        PLATFORM_NAME(IRONLAKE),
        PLATFORM_NAME(SANDYBRIDGE),
        PLATFORM_NAME(IVYBRIDGE),