mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 12:41:55 +00:00
e60304f8cb
Armada 370 and XP come with an unit called coherency fabric. This unit allows to use the Armada 370/XP as a nearly coherent architecture. The coherency mechanism uses snoop filters to ensure the coherency between caches, DRAM and devices. This mechanism needs a synchronization barrier which guarantees that all the memory writes initiated by the devices have reached their target and do not reside in intermediate write buffers. That's why the architecture is not totally coherent and we need to provide our own functions for some DMA operations. Beside the use of the coherency fabric, the device units will have to set the attribute flag of the decoding address window to select the accurate coherency process for the memory transaction. This is done each device driver programs the DRAM address windows. The value of the attribute set by the driver is retrieved through the orion_addr_map_cfg struct filled during the early initialization of the platform. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Reviewed-by: Yehuda Yitschak <yehuday@marvell.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
81 lines
1.8 KiB
Plaintext
81 lines
1.8 KiB
Plaintext
/*
|
|
* Device Tree Include file for Marvell Armada 370 and Armada XP SoC
|
|
*
|
|
* Copyright (C) 2012 Marvell
|
|
*
|
|
* Lior Amsalem <alior@marvell.com>
|
|
* Gregory CLEMENT <gregory.clement@free-electrons.com>
|
|
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
* Ben Dooks <ben.dooks@codethink.co.uk>
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*
|
|
* This file contains the definitions that are common to the Armada
|
|
* 370 and Armada XP SoC.
|
|
*/
|
|
|
|
/include/ "skeleton.dtsi"
|
|
|
|
/ {
|
|
model = "Marvell Armada 370 and XP SoC";
|
|
compatible = "marvell,armada_370_xp";
|
|
|
|
cpus {
|
|
cpu@0 {
|
|
compatible = "marvell,sheeva-v7";
|
|
};
|
|
};
|
|
|
|
mpic: interrupt-controller@d0020000 {
|
|
compatible = "marvell,mpic";
|
|
#interrupt-cells = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
interrupt-controller;
|
|
};
|
|
|
|
coherency-fabric@d0020200 {
|
|
compatible = "marvell,coherency-fabric";
|
|
reg = <0xd0020200 0xb0>,
|
|
<0xd0021810 0x1c>;
|
|
};
|
|
|
|
soc {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "simple-bus";
|
|
interrupt-parent = <&mpic>;
|
|
ranges;
|
|
|
|
serial@d0012000 {
|
|
compatible = "ns16550";
|
|
reg = <0xd0012000 0x100>;
|
|
reg-shift = <2>;
|
|
interrupts = <41>;
|
|
status = "disabled";
|
|
};
|
|
serial@d0012100 {
|
|
compatible = "ns16550";
|
|
reg = <0xd0012100 0x100>;
|
|
reg-shift = <2>;
|
|
interrupts = <42>;
|
|
status = "disabled";
|
|
};
|
|
|
|
timer@d0020300 {
|
|
compatible = "marvell,armada-370-xp-timer";
|
|
reg = <0xd0020300 0x30>;
|
|
interrupts = <37>, <38>, <39>, <40>;
|
|
clocks = <&coreclk 2>;
|
|
};
|
|
|
|
addr-decoding@d0020000 {
|
|
compatible = "marvell,armada-addr-decoding-controller";
|
|
reg = <0xd0020000 0x258>;
|
|
};
|
|
};
|
|
};
|
|
|