diff options
Diffstat (limited to 'arch/arm/mach-orion5x/common.c')
-rw-r--r-- | arch/arm/mach-orion5x/common.c | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index b41599f98a8e..91a5852b44f3 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c | |||
@@ -174,8 +174,10 @@ void __init orion5x_xor_init(void) | |||
174 | ****************************************************************************/ | 174 | ****************************************************************************/ |
175 | static void __init orion5x_crypto_init(void) | 175 | static void __init orion5x_crypto_init(void) |
176 | { | 176 | { |
177 | mvebu_mbus_add_window("sram", ORION5X_SRAM_PHYS_BASE, | 177 | mvebu_mbus_add_window_by_id(ORION_MBUS_SRAM_TARGET, |
178 | ORION5X_SRAM_SIZE); | 178 | ORION_MBUS_SRAM_ATTR, |
179 | ORION5X_SRAM_PHYS_BASE, | ||
180 | ORION5X_SRAM_SIZE); | ||
179 | orion_crypto_init(ORION5X_CRYPTO_PHYS_BASE, ORION5X_SRAM_PHYS_BASE, | 181 | orion_crypto_init(ORION5X_CRYPTO_PHYS_BASE, ORION5X_SRAM_PHYS_BASE, |
180 | SZ_8K, IRQ_ORION5X_CESA); | 182 | SZ_8K, IRQ_ORION5X_CESA); |
181 | } | 183 | } |
@@ -222,22 +224,24 @@ void orion5x_setup_wins(void) | |||
222 | * The PCIe windows will no longer be statically allocated | 224 | * The PCIe windows will no longer be statically allocated |
223 | * here once Orion5x is migrated to the pci-mvebu driver. | 225 | * here once Orion5x is migrated to the pci-mvebu driver. |
224 | */ | 226 | */ |
225 | mvebu_mbus_add_window_remap_flags("pcie0.0", ORION5X_PCIE_IO_PHYS_BASE, | 227 | mvebu_mbus_add_window_remap_by_id(ORION_MBUS_PCIE_IO_TARGET, |
228 | ORION_MBUS_PCIE_IO_ATTR, | ||
229 | ORION5X_PCIE_IO_PHYS_BASE, | ||
226 | ORION5X_PCIE_IO_SIZE, | 230 | ORION5X_PCIE_IO_SIZE, |
227 | ORION5X_PCIE_IO_BUS_BASE, | 231 | ORION5X_PCIE_IO_BUS_BASE); |
228 | MVEBU_MBUS_PCI_IO); | 232 | mvebu_mbus_add_window_by_id(ORION_MBUS_PCIE_MEM_TARGET, |
229 | mvebu_mbus_add_window_remap_flags("pcie0.0", ORION5X_PCIE_MEM_PHYS_BASE, | 233 | ORION_MBUS_PCIE_MEM_ATTR, |
230 | ORION5X_PCIE_MEM_SIZE, | 234 | ORION5X_PCIE_MEM_PHYS_BASE, |
231 | MVEBU_MBUS_NO_REMAP, | 235 | ORION5X_PCIE_MEM_SIZE); |
232 | MVEBU_MBUS_PCI_MEM); | 236 | mvebu_mbus_add_window_remap_by_id(ORION_MBUS_PCI_IO_TARGET, |
233 | mvebu_mbus_add_window_remap_flags("pci0.0", ORION5X_PCI_IO_PHYS_BASE, | 237 | ORION_MBUS_PCI_IO_ATTR, |
238 | ORION5X_PCI_IO_PHYS_BASE, | ||
234 | ORION5X_PCI_IO_SIZE, | 239 | ORION5X_PCI_IO_SIZE, |
235 | ORION5X_PCI_IO_BUS_BASE, | 240 | ORION5X_PCI_IO_BUS_BASE); |
236 | MVEBU_MBUS_PCI_IO); | 241 | mvebu_mbus_add_window_by_id(ORION_MBUS_PCI_MEM_TARGET, |
237 | mvebu_mbus_add_window_remap_flags("pci0.0", ORION5X_PCI_MEM_PHYS_BASE, | 242 | ORION_MBUS_PCI_MEM_ATTR, |
238 | ORION5X_PCI_MEM_SIZE, | 243 | ORION5X_PCI_MEM_PHYS_BASE, |
239 | MVEBU_MBUS_NO_REMAP, | 244 | ORION5X_PCI_MEM_SIZE); |
240 | MVEBU_MBUS_PCI_MEM); | ||
241 | } | 245 | } |
242 | 246 | ||
243 | int orion5x_tclk; | 247 | int orion5x_tclk; |