From patchwork Fri Jul 22 13:29:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Pinto X-Patchwork-Id: 9243559 X-Patchwork-Delegate: bhelgaas@google.com 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 77BE76088F for ; Fri, 22 Jul 2016 13:30:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A00C27F9A for ; Fri, 22 Jul 2016 13:30:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E05027FA9; Fri, 22 Jul 2016 13:30:18 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B0C027FA3 for ; Fri, 22 Jul 2016 13:30:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753989AbcGVN3v (ORCPT ); Fri, 22 Jul 2016 09:29:51 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:52110 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754156AbcGVN3u (ORCPT ); Fri, 22 Jul 2016 09:29:50 -0400 Received: from dc8secmta1.synopsys.com (dc8secmta1.synopsys.com [10.13.218.200]) by smtprelay.synopsys.com (Postfix) with ESMTP id BDCEA24E171F; Fri, 22 Jul 2016 06:29:49 -0700 (PDT) Received: from dc8secmta1.internal.synopsys.com (dc8secmta1.internal.synopsys.com [127.0.0.1]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id B0E0427113; Fri, 22 Jul 2016 06:29:49 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 875C327102; Fri, 22 Jul 2016 06:29:49 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 73FFF43E; Fri, 22 Jul 2016 06:29:49 -0700 (PDT) Received: from jppCent.internal.synopsys.com (jppcent.internal.synopsys.com [10.107.19.121]) by mailhost.synopsys.com (Postfix) with ESMTP id A2BC3421; Fri, 22 Jul 2016 06:29:47 -0700 (PDT) From: Joao Pinto To: helgaas@kernel.org, jingoohan1@gmail.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, jszhang@marvell.com, CARLOS.PALMINHA@synopsys.com, MiguelFalcao.Sousa@synopsys.com, Joao Pinto Subject: [PATCH v2 2/2] pcie-designware: add core version Date: Fri, 22 Jul 2016 14:29:39 +0100 Message-Id: <17d796c59a2b63a494d1695a4d04ed6fc9f93c0c.1469193895.git.jpinto@synopsys.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Joao Pinto --- changes v1->v2: - Nothing changed. Just to keep up the patch set version. drivers/pci/host/pcie-designware.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index 9135725..3e4c600 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c @@ -34,6 +34,10 @@ #define LINK_WAIT_IATU_MIN 9000 #define LINK_WAIT_IATU_MAX 10000 +/* Core version (available from core 4.70) */ +#define PCIE_CORE_VERSION 0x8F8 +#define PCIE_CORE_VERSION_480A 0x3438302a + /* Synopsys specific PCIE configuration registers */ #define PCIE_PORT_LINK_CONTROL 0x710 #define PORT_LINK_MODE_MASK (0x3f << 16)