ARM: dove: add MBUS_ID macro to Dove DT
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 29 Jul 2013 12:31:51 +0000 (14:31 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 30 Sep 2013 15:00:39 +0000 (15:00 +0000)
This adds a macro used for defining address window's target ID and
attribute cells for the MBus ranges entry.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/dove.dtsi

index cc27916..0b4b8ec 100644 (file)
@@ -1,5 +1,7 @@
 /include/ "skeleton.dtsi"
 
+#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
+
 / {
        compatible = "marvell,dove";
        model = "Marvell Armada 88AP510 SoC";