Skip to content

Commit

Permalink
ARM: mach-s3c64xx: 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: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Jon Medhurst committed Aug 22, 2011
1 parent 009426a commit 284dc06
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-s3c64xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/serial_core.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>

#include <mach/hardware.h>
#include <mach/map.h>
Expand Down Expand Up @@ -145,6 +146,7 @@ void __init s3c64xx_init_io(struct map_desc *mach_desc, int size)
/* initialise the io descriptors we need for initialisation */
iotable_init(s3c_iodesc, ARRAY_SIZE(s3c_iodesc));
iotable_init(mach_desc, size);
init_consistent_dma_size(SZ_8M);

idcode = __raw_readl(S3C_VA_SYS + 0x118);
if (!idcode) {
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-s3c64xx/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@

#define PLAT_PHYS_OFFSET UL(0x50000000)

#define CONSISTENT_DMA_SIZE SZ_8M

#endif

0 comments on commit 284dc06

Please sign in to comment.