From patchwork Tue Dec 20 12:33:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ander Conselvan de Oliveira X-Patchwork-Id: 9481493 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B7DD606DB for ; Tue, 20 Dec 2016 12:34:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1808284A5 for ; Tue, 20 Dec 2016 12:34:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E55B028483; Tue, 20 Dec 2016 12:34:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E22D28483 for ; Tue, 20 Dec 2016 12:34:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5227F6EE01; Tue, 20 Dec 2016 12:34:11 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1AA326EDFF for ; Tue, 20 Dec 2016 12:34:02 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 20 Dec 2016 04:34:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,378,1477983600"; d="scan'208";a="20696336" Received: from linux.intel.com ([10.54.29.200]) by orsmga002.jf.intel.com with ESMTP; 20 Dec 2016 04:34:00 -0800 Received: from localhost (aconselv-mobl3.fi.intel.com [10.237.72.203]) by linux.intel.com (Postfix) with ESMTP id E4BDD6A4006; Tue, 20 Dec 2016 04:33:11 -0800 (PST) From: Ander Conselvan de Oliveira To: intel-gfx@lists.freedesktop.org Date: Tue, 20 Dec 2016 14:33:51 +0200 Message-Id: <1482237231-31597-2-git-send-email-ander.conselvan.de.oliveira@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1482237231-31597-1-git-send-email-ander.conselvan.de.oliveira@intel.com> References: <1482237231-31597-1-git-send-email-ander.conselvan.de.oliveira@intel.com> Cc: Ander Conselvan de Oliveira Subject: [Intel-gfx] [PATCH i-g-t 2/2] lib/intel_chipset: Add geminilake platform definition X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ander Conselvan de Oliveira --- lib/intel_chipset.h | 2 ++ lib/intel_device_info.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 3c1260b..259b45f 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -63,6 +63,7 @@ struct intel_device_info { bool is_skylake : 1; bool is_broxton : 1; bool is_kabylake : 1; + bool is_geminilake : 1; const char *codename; }; @@ -156,6 +157,7 @@ void intel_check_pch(void); #define IS_KABYLAKE(devid) (intel_get_device_info(devid)->is_kabylake) #define IS_SKYLAKE(devid) (intel_get_device_info(devid)->is_skylake) #define IS_BROXTON(devid) (intel_get_device_info(devid)->is_broxton) +#define IS_GEMINILAKE(devid) (intel_get_device_info(devid)->is_geminilake) #define IS_GEN(devid, x) (intel_get_device_info(devid)->gen & (1u << ((x)-1))) #define AT_LEAST_GEN(devid, x) (intel_get_device_info(devid)->gen & -(1u << ((x)-1))) diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 5805b5e..db4f383 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -175,6 +175,12 @@ static const struct intel_device_info intel_kabylake_info = { .codename = "kabylake" }; +static const struct intel_device_info intel_geminilake_info = { + .gen = BIT(8), + .is_geminilake = true, + .codename = "geminilake" +}; + static const struct pci_id_match intel_device_match[] = { INTEL_I830_IDS(&intel_i830_info), INTEL_I845G_IDS(&intel_i845_info), @@ -218,6 +224,8 @@ static const struct pci_id_match intel_device_match[] = { INTEL_KBL_IDS(&intel_kabylake_info), + INTEL_GLK_IDS(&intel_geminilake_info), + INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info), };