Skip to content

Commit

Permalink
ARM: mach-at91: 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: Nicolas Ferre<nicolas.ferre@atmel.com>
  • Loading branch information
Jon Medhurst committed Aug 22, 2011
1 parent d70a596 commit f407c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-at91/at91sam9g45.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <linux/module.h>
#include <linux/pm.h>
#include <linux/dma-mapping.h>

#include <asm/irq.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -319,6 +320,7 @@ static void at91sam9g45_poweroff(void)
static void __init at91sam9g45_map_io(void)
{
at91_init_sram(0, AT91SAM9G45_SRAM_BASE, AT91SAM9G45_SRAM_SIZE);
init_consistent_dma_size(SZ_4M);
}

static void __init at91sam9g45_initialize(void)
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-at91/include/mach/at91sam9g45.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@
#define AT91SAM9G45_EHCI_BASE 0x00800000 /* USB Host controller (EHCI) */
#define AT91SAM9G45_VDEC_BASE 0x00900000 /* Video Decoder Controller */

#define CONSISTENT_DMA_SIZE SZ_4M

/*
* DMA peripheral identifiers
* for hardware handshaking interface
Expand Down

0 comments on commit f407c2e

Please sign in to comment.