diff options
| author | Olof Johansson <olof@lixom.net> | 2013-04-18 01:26:15 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-04-18 01:26:25 -0400 |
| commit | 8b85143e5dc428e8023bd741dfa9ec2e64ff4525 (patch) | |
| tree | c7bdc555c5ac39c8ce6850e575e3906666cc05d2 /include | |
| parent | 567b1b0839150e8d701553cbb586365b1f2ed36c (diff) | |
| parent | da497f6fbaa190d34907ecc9dd85cfc62ba9f5a2 (diff) | |
Merge tag 'soc_for_v3.10' of git://git.infradead.org/users/jcooper/linux into next/soc2
From Jason Cooper:
mvebu soc changes for v3.10
- use the mvebu-mbus driver
- prep for LPAE support
Depends:
- mvebu/cleanup (tags/cleanup_for_v3.10)
- mvebu/drivers (tags/drivers_for_v3.10)
* tag 'soc_for_v3.10' of git://git.infradead.org/users/jcooper/linux:
ARM: mvebu: Align the internal registers virtual base to support LPAE
ARM: mvebu: Limit the DMA zone when LPAE is selected
arm: plat-orion: remove addr-map code
arm: mach-mv78xx0: convert to use the mvebu-mbus driver
arm: mach-orion5x: convert to use mvebu-mbus driver
arm: mach-dove: convert to use mvebu-mbus driver
arm: mach-kirkwood: convert to use mvebu-mbus driver
arm: mach-mvebu: convert to use mvebu-mbus driver
bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood
bus: mvebu-mbus: Restore checking for coherency fabric hardware
ARM: Orion: add dbg_show function to gpio-orion driver
bus: introduce an Marvell EBU MBus driver
arm: mach-orion5x: use mv_mbus_dram_info() in PCI code
arm: plat-orion: use mv_mbus_dram_info() in PCIe code
arm: plat-orion: only build addr-map.c when needed
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mbus.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/include/linux/mbus.h b/include/linux/mbus.h index efa1a6d7aca8..dba482e31a13 100644 --- a/include/linux/mbus.h +++ b/include/linux/mbus.h | |||
| @@ -32,6 +32,20 @@ struct mbus_dram_target_info | |||
| 32 | } cs[4]; | 32 | } cs[4]; |
| 33 | }; | 33 | }; |
| 34 | 34 | ||
| 35 | /* Flags for PCI/PCIe address decoding regions */ | ||
| 36 | #define MVEBU_MBUS_PCI_IO 0x1 | ||
| 37 | #define MVEBU_MBUS_PCI_MEM 0x2 | ||
| 38 | #define MVEBU_MBUS_PCI_WA 0x3 | ||
| 39 | |||
| 40 | /* | ||
| 41 | * Magic value that explicits that we don't need a remapping-capable | ||
| 42 | * address decoding window. | ||
| 43 | */ | ||
| 44 | #define MVEBU_MBUS_NO_REMAP (0xffffffff) | ||
| 45 | |||
| 46 | /* Maximum size of a mbus window name */ | ||
| 47 | #define MVEBU_MBUS_MAX_WINNAME_SZ 32 | ||
| 48 | |||
| 35 | /* | 49 | /* |
| 36 | * The Marvell mbus is to be found only on SOCs from the Orion family | 50 | * The Marvell mbus is to be found only on SOCs from the Orion family |
| 37 | * at the moment. Provide a dummy stub for other architectures. | 51 | * at the moment. Provide a dummy stub for other architectures. |
| @@ -44,4 +58,15 @@ static inline const struct mbus_dram_target_info *mv_mbus_dram_info(void) | |||
| 44 | return NULL; | 58 | return NULL; |
| 45 | } | 59 | } |
| 46 | #endif | 60 | #endif |
| 47 | #endif | 61 | |
| 62 | int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, | ||
| 63 | size_t size, phys_addr_t remap, | ||
| 64 | unsigned int flags); | ||
| 65 | int mvebu_mbus_add_window(const char *devname, phys_addr_t base, | ||
| 66 | size_t size); | ||
| 67 | int mvebu_mbus_del_window(phys_addr_t base, size_t size); | ||
| 68 | int mvebu_mbus_init(const char *soc, phys_addr_t mbus_phys_base, | ||
| 69 | size_t mbus_size, phys_addr_t sdram_phys_base, | ||
| 70 | size_t sdram_size); | ||
| 71 | |||
| 72 | #endif /* __LINUX_MBUS_H */ | ||
