Skip to content

Commit

Permalink
ARM: mach-bcmring: 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>
CC: Jiandong Zheng <jdzheng@broadcom.com>
CC: Scott Branden <sbranden@broadcom.com>
  • Loading branch information
Jon Medhurst committed Aug 22, 2011
1 parent f407c2e commit 2d5e975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/arm/mach-bcmring/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,4 @@

#define PLAT_PHYS_OFFSET CFG_GLOBAL_RAM_BASE

/*
* Maximum DMA memory allowed is 14M
*/
#define CONSISTENT_DMA_SIZE (SZ_16M - SZ_2M)

#endif
3 changes: 3 additions & 0 deletions arch/arm/mach-bcmring/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*****************************************************************************/

#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <asm/mach/map.h>

#include <mach/hardware.h>
Expand Down Expand Up @@ -53,4 +54,6 @@ void __init bcmring_map_io(void)
{

iotable_init(bcmring_io_desc, ARRAY_SIZE(bcmring_io_desc));
/* Maximum DMA memory allowed is 14M */
init_consistent_dma_size(14 << 20);
}

0 comments on commit 2d5e975

Please sign in to comment.