From: Joshua Kinard <kumba@gentoo.org>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Linux/MIPS <linux-mips@linux-mips.org>
Subject: [PATCH 07/12] MIPS: BRIDGE: Add XBRIDGE revs and SWAP bit
Date: Tue, 7 Feb 2017 01:13:51 -0500 [thread overview]
Message-ID: <20170207061356.8270-8-kumba@gentoo.org> (raw)
In-Reply-To: <20170207061356.8270-1-kumba@gentoo.org>
From: Joshua Kinard <kumba@gentoo.org>
Add macros for the two known XBRIDGE revisions commonly found on IP35
hardware. Both macros are sourced from the IA64 copy of bridge.h from
Linux-2.4.18. Additionally, per the XBRIDGE ASIC specification, bit 55
of the Crosstalk address selects whether to use byte-swapping or not on
the XBRIDGE.
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
---
arch/mips/include/asm/pci/bridge.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/mips/include/asm/pci/bridge.h b/arch/mips/include/asm/pci/bridge.h
index 3c214feab772..f173875b4233 100644
--- a/arch/mips/include/asm/pci/bridge.h
+++ b/arch/mips/include/asm/pci/bridge.h
@@ -484,6 +484,8 @@ struct bridge_widget {
#define BRIDGE_REV_B 0x2
#define BRIDGE_REV_C 0x3
#define BRIDGE_REV_D 0x4
+#define XBRIDGE_REV_A 0x1
+#define XBRIDGE_REV_B 0x2
/* Bridge widget status register bits definition */
#define BRIDGE_STAT_LLP_REC_CNT GENMASK(31, 24)
@@ -937,6 +939,7 @@ struct bridge_err_cmdword_s {
#define PCI64_ATTR_PREC BIT_ULL(58) /* Precise */
#define PCI64_ATTR_VIRTUAL BIT_ULL(57) /* Virtual Request */
#define PCI64_ATTR_BAR BIT_ULL(56) /* Barrier */
+#define PCI64_ATTR_SWAP BIT_ULL(55) /* Byte swap (XBRIDGE) */
#define PCI64_ATTR_RMF_MASK GENMASK_ULL(55, 48)
#define PCI64_ATTR_RMF_SHFT 48
--
2.11.1
next prev parent reply other threads:[~2017-02-07 6:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 6:13 [PATCH 00/12] MIPS: BRIDGE Updates Joshua Kinard
2017-02-07 6:13 ` [PATCH 01/12] MIPS: BRIDGE: Rename pci-ip27.c to pci-bridge.c Joshua Kinard
2017-02-07 6:13 ` [PATCH 02/12] MIPS: IP27: Add pcibr.h header for IP27 Joshua Kinard
2017-02-07 6:13 ` [PATCH 03/12] MIPS: PCI: Minor clean-ups to pci-legacy.c Joshua Kinard
2017-02-07 6:13 ` [PATCH 04/12] MIPS: PCI: Add BRIDGE 'pre_enable' hook Joshua Kinard
2017-02-07 6:13 ` [PATCH 05/12] MIPS: BRIDGE: Clean-up bridge.h header file Joshua Kinard
2017-02-07 6:13 ` [PATCH 06/12] MIPS: BRIDGE: Overhaul " Joshua Kinard
2017-02-07 6:13 ` Joshua Kinard [this message]
2017-02-07 6:13 ` [PATCH 08/12] MIPS: BRIDGE: Update ops-bridge.c Joshua Kinard
2017-02-07 6:13 ` [PATCH 09/12] MIPS: BRIDGE: Use !pci_is_root_bus(bus) to check for bus->number > 0 Joshua Kinard
2017-02-07 6:13 ` [PATCH 10/12] MIPS: BRIDGE: Overhaul pci-bridge.c driver Joshua Kinard
2017-02-07 6:13 ` [PATCH 11/12] MIPS: IP27: Update IRQ code to work with the new BRIDGE code Joshua Kinard
2017-02-07 6:13 ` [PATCH 12/12] MIPS: PCI: Fix IP27 for the PCI_PROBE_ONLY case Joshua Kinard
2017-02-07 18:29 ` Bjorn Helgaas
2017-02-08 9:39 ` Joshua Kinard
[not found] ` <CAErSpo4LsrPCtdZwp6CyT0jKhXLt3j=fGSiFjpRRTPUjFoKHtQ@mail.gmail.com>
2017-02-12 4:09 ` Joshua Kinard
2017-02-13 22:45 ` Bjorn Helgaas
2017-02-13 22:45 ` Bjorn Helgaas
2017-02-13 22:45 ` Bjorn Helgaas
2017-02-14 7:39 ` Joshua Kinard
2017-02-14 14:56 ` Bjorn Helgaas
2017-02-24 8:50 ` Joshua Kinard
2017-02-24 18:38 ` Bjorn Helgaas
2017-02-25 9:34 ` Joshua Kinard
2017-02-27 16:36 ` Bjorn Helgaas
2017-02-28 0:25 ` Joshua Kinard
2017-03-01 15:39 ` Bjorn Helgaas
2017-02-09 18:36 ` Joshua Kinard
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=20170207061356.8270-8-kumba@gentoo.org \
--to=kumba@gentoo.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.