diff options
| -rw-r--r-- | arch/arm/mach-mvebu/armada-370-xp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mvebu/armada-370-xp.c b/arch/arm/mach-mvebu/armada-370-xp.c index 3292d6da5dc7..cd6eac17fb67 100644 --- a/arch/arm/mach-mvebu/armada-370-xp.c +++ b/arch/arm/mach-mvebu/armada-370-xp.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
| 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 <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
| 22 | #include <asm/mach/map.h> | 23 | #include <asm/mach/map.h> |
| 23 | #include <asm/mach/time.h> | 24 | #include <asm/mach/time.h> |
| @@ -44,6 +45,16 @@ void __init armada_370_xp_timer_and_clk_init(void) | |||
| 44 | armada_370_xp_timer_init(); | 45 | armada_370_xp_timer_init(); |
| 45 | } | 46 | } |
| 46 | 47 | ||
| 48 | void __init armada_370_xp_init_early(void) | ||
| 49 | { | ||
| 50 | /* | ||
| 51 | * Some Armada 370/XP devices allocate their coherent buffers | ||
| 52 | * from atomic context. Increase size of atomic coherent pool | ||
| 53 | * to make sure such the allocations won't fail. | ||
| 54 | */ | ||
| 55 | init_dma_coherent_pool_size(SZ_1M); | ||
| 56 | } | ||
| 57 | |||
| 47 | struct sys_timer armada_370_xp_timer = { | 58 | struct sys_timer armada_370_xp_timer = { |
| 48 | .init = armada_370_xp_timer_and_clk_init, | 59 | .init = armada_370_xp_timer_and_clk_init, |
| 49 | }; | 60 | }; |
| @@ -62,6 +73,7 @@ static const char * const armada_370_xp_dt_board_dt_compat[] = { | |||
| 62 | DT_MACHINE_START(ARMADA_XP_DT, "Marvell Aramada 370/XP (Device Tree)") | 73 | DT_MACHINE_START(ARMADA_XP_DT, "Marvell Aramada 370/XP (Device Tree)") |
| 63 | .init_machine = armada_370_xp_dt_init, | 74 | .init_machine = armada_370_xp_dt_init, |
| 64 | .map_io = armada_370_xp_map_io, | 75 | .map_io = armada_370_xp_map_io, |
| 76 | .init_early = armada_370_xp_init_early, | ||
| 65 | .init_irq = armada_370_xp_init_irq, | 77 | .init_irq = armada_370_xp_init_irq, |
| 66 | .handle_irq = armada_370_xp_handle_irq, | 78 | .handle_irq = armada_370_xp_handle_irq, |
| 67 | .timer = &armada_370_xp_timer, | 79 | .timer = &armada_370_xp_timer, |
