mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/i915/mchbar: Use intel_mchbar_read() instead of intel_de_read()
We are doing a few accesses to MCHBAR registers with intel_de_read(). Use the dedicated intel_mchbar_read() instead. Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260331154259.24600-6-ville.syrjala@linux.intel.com
This commit is contained in:
parent
84b0366809
commit
1b274a3de2
|
|
@ -41,6 +41,7 @@
|
|||
#include "intel_display_utils.h"
|
||||
#include "intel_display_wa.h"
|
||||
#include "intel_dram.h"
|
||||
#include "intel_mchbar.h"
|
||||
#include "intel_mchbar_regs.h"
|
||||
#include "intel_parent.h"
|
||||
#include "intel_pci_config.h"
|
||||
|
|
@ -376,8 +377,8 @@ static unsigned int intel_hpll_vco(struct intel_display *display)
|
|||
else
|
||||
return 0;
|
||||
|
||||
tmp = intel_de_read(display, display->platform.pineview ||
|
||||
display->platform.mobile ? HPLLVCO_MOBILE : HPLLVCO);
|
||||
tmp = intel_mchbar_read(display, display->platform.pineview ||
|
||||
display->platform.mobile ? HPLLVCO_MOBILE : HPLLVCO);
|
||||
|
||||
vco = vco_table[tmp & 0x7];
|
||||
if (vco == 0)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#include "intel_display_wa.h"
|
||||
#include "intel_dmc.h"
|
||||
#include "intel_dram.h"
|
||||
#include "intel_mchbar.h"
|
||||
#include "intel_mchbar_regs.h"
|
||||
#include "intel_parent.h"
|
||||
#include "intel_pch_refclk.h"
|
||||
|
|
@ -1252,7 +1253,7 @@ static void assert_can_disable_lcpll(struct intel_display *display)
|
|||
static u32 hsw_read_dcomp(struct intel_display *display)
|
||||
{
|
||||
if (display->platform.haswell)
|
||||
return intel_de_read(display, D_COMP_HSW);
|
||||
return intel_mchbar_read(display, D_COMP_HSW);
|
||||
else
|
||||
return intel_de_read(display, D_COMP_BDW);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user