drm/i915: Get rid of the INTEL_GMCH_CTRL alias

INTEL_GMCH_CTRL and I830_GMCH_CTRL are the same register.
Get rid of the INTEL_GMCH_CTRL name.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251208182637.334-18-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Ville Syrjälä
2025-12-08 20:26:35 +02:00
parent 5f61ebd578
commit 20382658ff
2 changed files with 4 additions and 3 deletions

View File

@@ -20,7 +20,7 @@
static unsigned int intel_gmch_ctrl_reg(struct intel_display *display)
{
return DISPLAY_VER(display) >= 6 ? SNB_GMCH_CTRL : INTEL_GMCH_CTRL;
return DISPLAY_VER(display) >= 6 ? SNB_GMCH_CTRL : I830_GMCH_CTRL;
}
static bool intel_vga_decode_is_enabled(struct intel_display *display)

View File

@@ -44,8 +44,6 @@ extern struct resource intel_graphics_stolen_res;
* This is all handled in the intel-gtt.ko module. i915.ko only
* cares about the vga bit for the vga arbiter.
*/
#define INTEL_GMCH_CTRL 0x52
#define INTEL_GMCH_VGA_DISABLE (1 << 1)
#define SNB_GMCH_CTRL 0x50
#define SNB_GMCH_GGMS_SHIFT 8 /* GTT Graphics Memory Size */
#define SNB_GMCH_GGMS_MASK 0x3
@@ -80,6 +78,9 @@ extern struct resource intel_graphics_stolen_res;
#define INTEL_GMCH_GMS_STOLEN_224M (0xc << 4)
#define INTEL_GMCH_GMS_STOLEN_352M (0xd << 4)
/* valid for both I830_GMCH_CTRL and SNB_GMCH_CTRL */
#define INTEL_GMCH_VGA_DISABLE (1 << 1)
#define I830_DRB3 0x63
#define I85X_DRB3 0x43
#define I865_TOUD 0xc4