Skip to content

Commit

Permalink
ARM: mach-u300: Setup consistent dma size at boot time
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
  • Loading branch information
Jon Medhurst committed Aug 22, 2011
1 parent fd24f90 commit d70a596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-u300/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
}

/*
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-u300/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,4 @@
(CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1))*1024*1024 + 0x100)
#endif

/*
* We enable a real big DMA buffer if need be.
*/
#define CONSISTENT_DMA_SIZE SZ_4M

#endif

0 comments on commit d70a596

Please sign in to comment.