aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/memory-controllers
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2016-08-09 17:55:43 -0400
committerBorislav Petkov <bp@suse.de>2016-09-01 04:28:02 -0400
commit339fdff14c1ed34acc9c3368e01b56f80692cf83 (patch)
tree390b7ae614e13a47f61dfda06939d6b1923b938b /Documentation/devicetree/bindings/memory-controllers
parent4e2c3252d2426cd05286e38650365f215571d3c6 (diff)
EDAC, fsl_ddr: Add support for little endian
Get endianness from device tree. Both big endian and little endian are supported. Default to big endian for backwards compatibility to MPC85xx. Signed-off-by: York Sun <york.sun@nxp.com> Acked-by: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org Cc: linux-edac <linux-edac@vger.kernel.org> Cc: morbidrsa@gmail.com Cc: oss@buserror.net Cc: stuart.yoder@nxp.com Link: http://lkml.kernel.org/r/1470779760-16483-7-git-send-email-york.sun@nxp.com Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'Documentation/devicetree/bindings/memory-controllers')
-rw-r--r--Documentation/devicetree/bindings/memory-controllers/fsl/ddr.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/memory-controllers/fsl/ddr.txt b/Documentation/devicetree/bindings/memory-controllers/fsl/ddr.txt
new file mode 100644
index 000000000000..dde6d837083a
--- /dev/null
+++ b/Documentation/devicetree/bindings/memory-controllers/fsl/ddr.txt
@@ -0,0 +1,29 @@
1Freescale DDR memory controller
2
3Properties:
4
5- compatible : Should include "fsl,chip-memory-controller" where
6 chip is the processor (bsc9132, mpc8572 etc.), or
7 "fsl,qoriq-memory-controller".
8- reg : Address and size of DDR controller registers
9- interrupts : Error interrupt of DDR controller
10- little-endian : Specifies little-endian access to registers
11 If omitted, big-endian will be used.
12
13Example 1:
14
15 memory-controller@2000 {
16 compatible = "fsl,bsc9132-memory-controller";
17 reg = <0x2000 0x1000>;
18 interrupts = <16 2 1 8>;
19 };
20
21
22Example 2:
23
24 ddr1: memory-controller@8000 {
25 compatible = "fsl,qoriq-memory-controller-v4.7",
26 "fsl,qoriq-memory-controller";
27 reg = <0x8000 0x1000>;
28 interrupts = <16 2 1 23>;
29 };