[Intel-gfx] [PATCH v4 1/3] drm/i915: make PCH_GMBUS* definitions private to gvt
Zhenyu Wang
zhenyuw at linux.intel.com
Tue Jul 31 02:45:28 UTC 2018
On 2018.07.27 12:36:45 -0700, Lucas De Marchi wrote:
> This is the only place that they are being used - the others use the
> GMBUS* macros that rely on dev_priv being already properly initialized.
>
Reviewed-by: Zhenyu Wang <zhenyuw at linux.intel.com>
thanks!
> Cc: intel-gvt-dev at lists.freedesktop.org
> Cc: Zhenyu Wang <zhenyuw at linux.intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
> ---
> drivers/gpu/drm/i915/gvt/reg.h | 7 +++++++
> drivers/gpu/drm/i915/i915_reg.h | 7 -------
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/gvt/reg.h b/drivers/gpu/drm/i915/gvt/reg.h
> index d4f7ce6dc1d7..fd5fd25d0a0f 100644
> --- a/drivers/gpu/drm/i915/gvt/reg.h
> +++ b/drivers/gpu/drm/i915/gvt/reg.h
> @@ -77,4 +77,11 @@
> #define _RING_CTL_BUF_SIZE(ctl) (((ctl) & RB_TAIL_SIZE_MASK) + \
> I915_GTT_PAGE_SIZE)
>
> +#define PCH_GMBUS0 _MMIO(0xc5100)
> +#define PCH_GMBUS1 _MMIO(0xc5104)
> +#define PCH_GMBUS2 _MMIO(0xc5108)
> +#define PCH_GMBUS3 _MMIO(0xc510c)
> +#define PCH_GMBUS4 _MMIO(0xc5110)
> +#define PCH_GMBUS5 _MMIO(0xc5120)
> +
> #endif
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 5530c470f30d..07606677168c 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -7875,13 +7875,6 @@ enum {
> #define PCH_GPIOE _MMIO(0xc5020)
> #define PCH_GPIOF _MMIO(0xc5024)
>
> -#define PCH_GMBUS0 _MMIO(0xc5100)
> -#define PCH_GMBUS1 _MMIO(0xc5104)
> -#define PCH_GMBUS2 _MMIO(0xc5108)
> -#define PCH_GMBUS3 _MMIO(0xc510c)
> -#define PCH_GMBUS4 _MMIO(0xc5110)
> -#define PCH_GMBUS5 _MMIO(0xc5120)
> -
> #define _PCH_DPLL_A 0xc6014
> #define _PCH_DPLL_B 0xc6018
> #define PCH_DPLL(pll) _MMIO((pll) == 0 ? _PCH_DPLL_A : _PCH_DPLL_B)
> --
> 2.17.1
>
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20180731/0adaebd6/attachment.sig>
More information about the Intel-gfx
mailing list