[PATCH 02/37] drm/i915: add support for LynxPoint PCH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Rodrigo Vivi <rodrigo.vivi at gmail.com>

On Wed, Mar 21, 2012 at 10:09 PM, Eugeni Dodonov
<eugeni.dodonov at intel.com> wrote:
> Signed-off-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
> ---
> ?drivers/gpu/drm/i915/i915_drv.c | ? ?4 ++++
> ?drivers/gpu/drm/i915/i915_drv.h | ? ?2 ++
> ?2 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index d4f542b..5fe9d62 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -326,6 +326,7 @@ MODULE_DEVICE_TABLE(pci, pciidlist);
> ?#define INTEL_PCH_IBX_DEVICE_ID_TYPE ? 0x3b00
> ?#define INTEL_PCH_CPT_DEVICE_ID_TYPE ? 0x1c00
> ?#define INTEL_PCH_PPT_DEVICE_ID_TYPE ? 0x1e00
> +#define INTEL_PCH_LPT_DEVICE_ID_TYPE ? 0x8c00
>
> ?void intel_detect_pch(struct drm_device *dev)
> ?{
> @@ -354,6 +355,9 @@ void intel_detect_pch(struct drm_device *dev)
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?/* PantherPoint is CPT compatible */
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?dev_priv->pch_type = PCH_CPT;
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?DRM_DEBUG_KMS("Found PatherPoint PCH\n");
> + ? ? ? ? ? ? ? ? ? ? ? } else if (id == INTEL_PCH_LPT_DEVICE_ID_TYPE) {
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dev_priv->pch_type = PCH_LPT;
> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? DRM_DEBUG_KMS("Found LynxPoint PCH\n");
> ? ? ? ? ? ? ? ? ? ? ? ?}
> ? ? ? ? ? ? ? ?}
> ? ? ? ? ? ? ? ?pci_dev_put(pch);
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 9a99ef1..49488e1 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -292,6 +292,7 @@ enum no_fbc_reason {
> ?enum intel_pch {
> ? ? ? ?PCH_IBX, ? ? ? ?/* Ibexpeak PCH */
> ? ? ? ?PCH_CPT, ? ? ? ?/* Cougarpoint PCH */
> + ? ? ? PCH_LPT, ? ? ? ?/* Lynxpoint PCH */
> ?};
>
> ?#define QUIRK_PIPEA_FORCE (1<<0)
> @@ -1050,6 +1051,7 @@ struct drm_i915_file_private {
> ?#define HAS_PIPE_CONTROL(dev) (INTEL_INFO(dev)->gen >= 5)
>
> ?#define INTEL_PCH_TYPE(dev) (((struct drm_i915_private *)(dev)->dev_private)->pch_type)
> +#define HAS_PCH_LPT(dev) (INTEL_PCH_TYPE(dev) == PCH_LPT)
> ?#define HAS_PCH_CPT(dev) (INTEL_PCH_TYPE(dev) == PCH_CPT)
> ?#define HAS_PCH_IBX(dev) (INTEL_PCH_TYPE(dev) == PCH_IBX)
>
> --
> 1.7.9.2
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Rodrigo Vivi
Blog: http://blog.vivi.eng.br
GPG: 0x905BE242 @ wwwkeys.pgp.net


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux