mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joao Pinto <Joao.Pinto@synopsys.com>
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 <Joao.Pinto@synopsys.com>
Subject: [PATCH 2/2] pcie-designware: add core version
Date: Thu, 21 Jul 2016 10:48:36 +0100	[thread overview]
Message-ID: <90b580a47533713167ec74c15520d2490afff49e.1469094139.git.jpinto@synopsys.com> (raw)
In-Reply-To: <cover.1469094139.git.jpinto@synopsys.com>
In-Reply-To: <cover.1469094139.git.jpinto@synopsys.com>

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 <jpinto@synopsys.com>
---
 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)
-- 
1.8.1.5

      parent reply	other threads:[~2016-07-21  9:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-21  9:48 [PATCH 0/2] pcie-designware: add iATU unroll feature Joao Pinto
2016-07-21  9:48 ` [PATCH 1/2] pcie-designware: add iATU Unroll feature Joao Pinto
2016-07-21 22:47   ` kbuild test robot
2016-07-21  9:48 ` Joao Pinto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90b580a47533713167ec74c15520d2490afff49e.1469094139.git.jpinto@synopsys.com \
    --to=joao.pinto@synopsys.com \
    --cc=CARLOS.PALMINHA@synopsys.com \
    --cc=MiguelFalcao.Sousa@synopsys.com \
    --cc=helgaas@kernel.org \
    --cc=jingoohan1@gmail.com \
    --cc=jszhang@marvell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®