From patchwork Thu Jul 21 09:48:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Pinto X-Patchwork-Id: 9241341 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 B722460756 for ; Thu, 21 Jul 2016 09:50:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A755F212BE for ; Thu, 21 Jul 2016 09:50:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BE5427D5E; Thu, 21 Jul 2016 09:50:10 +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 4BCEB212BE for ; Thu, 21 Jul 2016 09:50:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbcGUJuB (ORCPT ); Thu, 21 Jul 2016 05:50:01 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:42480 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbcGUJss (ORCPT ); Thu, 21 Jul 2016 05:48:48 -0400 Received: from us02secmta1.synopsys.com (us02secmta1.synopsys.com [10.12.235.96]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2081610C1512; Thu, 21 Jul 2016 02:48:47 -0700 (PDT) Received: from us02secmta1.internal.synopsys.com (us02secmta1.internal.synopsys.com [127.0.0.1]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id 1419C4E215; Thu, 21 Jul 2016 02:48:47 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id DF9424E202; Thu, 21 Jul 2016 02:48:46 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id CB793BBB; Thu, 21 Jul 2016 02:48:46 -0700 (PDT) Received: from jppCent.internal.synopsys.com (jppcent.internal.synopsys.com [10.107.19.95]) by mailhost.synopsys.com (Postfix) with ESMTP id 06474B9E; Thu, 21 Jul 2016 02:48:44 -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 2/2] pcie-designware: add core version Date: Thu, 21 Jul 2016 10:48:36 +0100 Message-Id: <90b580a47533713167ec74c15520d2490afff49e.1469094139.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 The Core version information is available since version 4.70. This patch adds to the driver the register and default value for new core 4.80 if needed in some future work. Signed-off-by: Joao Pinto --- 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 c673e6c..1f40288 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)