summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-07-26 15:18:04 +0200
committerJason Cooper <jason@lakedaemon.net>2013-08-06 16:11:48 +0200
commit3ec81e7e0374734893941258c8cbb998a780c5eb (patch)
tree752b03c7eb5dfe55e8d54a1da901e56ca23096fc /arch/arm
parentARM: kirkwood: Introduce MBus DT node (diff)
downloadlinux-3ec81e7e0374734893941258c8cbb998a780c5eb.tar.xz
linux-3ec81e7e0374734893941258c8cbb998a780c5eb.zip
ARM: kirkwood: Introduce MBUS_ID
This macro is used to define window's target ID and attribute cells for the MBus ranges entries. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Tested-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/kirkwood.dtsi2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi
index 83d53b39f911..5003c8302b76 100644
--- a/arch/arm/boot/dts/kirkwood.dtsi
+++ b/arch/arm/boot/dts/kirkwood.dtsi
@@ -1,5 +1,7 @@
/include/ "skeleton.dtsi"
+#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
+
/ {
compatible = "marvell,kirkwood";
interrupt-parent = <&intc>;