summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2013-04-15 14:05:57 +0000
committerJason Cooper <jason@lakedaemon.net>2013-04-15 14:05:57 +0000
commita33dc586c90ef8eee273280782b43b40cd43ad7e (patch)
tree7861fac1e662320d7de5d4865e840e4fc4fe4e59 /include/linux
parent02ac5b3fc5550e57b19a594e83efbb6af7bfa4fd (diff)
parent8d7297b48d6d76f1cb077f87735c7d912f82e8cc (diff)
Merge tag 'tags/drivers_for_v3.10' into mvebu/soc
mvebu drivers for v3.10 - mvebu: mbus driver for kirkwood, dove, orion5x, mv78xx, and armada 370/xp
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mbus.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/linux/mbus.h b/include/linux/mbus.h
index efa1a6d7aca8..462eb9791012 100644
--- a/include/linux/mbus.h
+++ b/include/linux/mbus.h
@@ -32,6 +32,17 @@ struct mbus_dram_target_info
} cs[4];
};
+/* Flags for PCI/PCIe address decoding regions */
+#define MVEBU_MBUS_PCI_IO 0x1
+#define MVEBU_MBUS_PCI_MEM 0x2
+#define MVEBU_MBUS_PCI_WA 0x3
+
+/*
+ * Magic value that explicits that we don't need a remapping-capable
+ * address decoding window.
+ */
+#define MVEBU_MBUS_NO_REMAP (0xffffffff)
+
/*
* The Marvell mbus is to be found only on SOCs from the Orion family
* at the moment. Provide a dummy stub for other architectures.
@@ -44,4 +55,15 @@ static inline const struct mbus_dram_target_info *mv_mbus_dram_info(void)
return NULL;
}
#endif
-#endif
+
+int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base,
+ size_t size, phys_addr_t remap,
+ unsigned int flags);
+int mvebu_mbus_add_window(const char *devname, phys_addr_t base,
+ size_t size);
+int mvebu_mbus_del_window(phys_addr_t base, size_t size);
+int mvebu_mbus_init(const char *soc, phys_addr_t mbus_phys_base,
+ size_t mbus_size, phys_addr_t sdram_phys_base,
+ size_t sdram_size);
+
+#endif /* __LINUX_MBUS_H */