diff options
Diffstat (limited to 'arch/arm/mach-mvebu/armada-370-xp.c')
-rw-r--r-- | arch/arm/mach-mvebu/armada-370-xp.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index 433e8c5343b2..42a4cb3087e2 100644 --- a/arch/arm/mach-mvebu/armada-370-xp.c +++ b/arch/arm/mach-mvebu/armada-370-xp.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/time-armada-370-xp.h> | 19 | #include <linux/time-armada-370-xp.h> |
20 | #include <linux/clk/mvebu.h> | 20 | #include <linux/clk/mvebu.h> |
21 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
22 | #include <linux/mbus.h> | ||
22 | #include <linux/irqchip.h> | 23 | #include <linux/irqchip.h> |
23 | #include <asm/hardware/cache-l2x0.h> | 24 | #include <asm/hardware/cache-l2x0.h> |
24 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
@@ -50,6 +51,8 @@ void __init armada_370_xp_timer_and_clk_init(void) | |||
50 | 51 | ||
51 | void __init armada_370_xp_init_early(void) | 52 | void __init armada_370_xp_init_early(void) |
52 | { | 53 | { |
54 | char *mbus_soc_name; | ||
55 | |||
53 | /* | 56 | /* |
54 | * Some Armada 370/XP devices allocate their coherent buffers | 57 | * Some Armada 370/XP devices allocate their coherent buffers |
55 | * from atomic context. Increase size of atomic coherent pool | 58 | * from atomic context. Increase size of atomic coherent pool |
@@ -57,6 +60,21 @@ void __init armada_370_xp_init_early(void) | |||
57 | */ | 60 | */ |
58 | init_dma_coherent_pool_size(SZ_1M); | 61 | init_dma_coherent_pool_size(SZ_1M); |
59 | 62 | ||
63 | /* | ||
64 | * This initialization will be replaced by a DT-based | ||
65 | * initialization once the mvebu-mbus driver gains DT support. | ||
66 | */ | ||
67 | if (of_machine_is_compatible("marvell,armada370")) | ||
68 | mbus_soc_name = "marvell,armada370-mbus"; | ||
69 | else | ||
70 | mbus_soc_name = "marvell,armadaxp-mbus"; | ||
71 | |||
72 | mvebu_mbus_init(mbus_soc_name, | ||
73 | ARMADA_370_XP_MBUS_WINS_BASE, | ||
74 | ARMADA_370_XP_MBUS_WINS_SIZE, | ||
75 | ARMADA_370_XP_SDRAM_WINS_BASE, | ||
76 | ARMADA_370_XP_SDRAM_WINS_SIZE); | ||
77 | |||
60 | #ifdef CONFIG_CACHE_L2X0 | 78 | #ifdef CONFIG_CACHE_L2X0 |
61 | l2x0_of_init(0, ~0UL); | 79 | l2x0_of_init(0, ~0UL); |
62 | #endif | 80 | #endif |