ARM: mach-u300: Setup consistent dma size at boot time
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-u300 / core.c
index 399c89f14dfb5b9d78835409611c748c7411a40b..376b6dfdfae99ceccac9b92deb813eab3c2940ed 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/err.h>
 #include <linux/mtd/nand.h>
 #include <linux/mtd/fsmc.h>
+#include <linux/dma-mapping.h>
 
 #include <asm/types.h>
 #include <asm/setup.h>
@@ -92,6 +93,8 @@ static struct map_desc u300_io_desc[] __initdata = {
 void __init u300_map_io(void)
 {
        iotable_init(u300_io_desc, ARRAY_SIZE(u300_io_desc));
+       /* We enable a real big DMA buffer if need be. */
+       init_consistent_dma_size(SZ_4M);
 }
 
 /*