aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-u300
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-u300')
-rw-r--r--arch/arm/mach-u300/core.c3
-rw-r--r--arch/arm/mach-u300/include/mach/memory.h7
-rw-r--r--arch/arm/mach-u300/u300.c2
3 files changed, 5 insertions, 7 deletions
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c
index 5030a455251a..724037e2de3d 100644
--- a/arch/arm/mach-u300/core.c
+++ b/arch/arm/mach-u300/core.c
@@ -25,6 +25,7 @@
25#include <linux/err.h> 25#include <linux/err.h>
26#include <linux/mtd/nand.h> 26#include <linux/mtd/nand.h>
27#include <linux/mtd/fsmc.h> 27#include <linux/mtd/fsmc.h>
28#include <linux/dma-mapping.h>
28 29
29#include <asm/types.h> 30#include <asm/types.h>
30#include <asm/setup.h> 31#include <asm/setup.h>
@@ -73,6 +74,8 @@ static struct map_desc u300_io_desc[] __initdata = {
73void __init u300_map_io(void) 74void __init u300_map_io(void)
74{ 75{
75 iotable_init(u300_io_desc, ARRAY_SIZE(u300_io_desc)); 76 iotable_init(u300_io_desc, ARRAY_SIZE(u300_io_desc));
77 /* We enable a real big DMA buffer if need be. */
78 init_consistent_dma_size(SZ_4M);
76} 79}
77 80
78/* 81/*
diff --git a/arch/arm/mach-u300/include/mach/memory.h b/arch/arm/mach-u300/include/mach/memory.h
index 02bd832f063e..c808f347a081 100644
--- a/arch/arm/mach-u300/include/mach/memory.h
+++ b/arch/arm/mach-u300/include/mach/memory.h
@@ -14,11 +14,6 @@
14#define __MACH_MEMORY_H 14#define __MACH_MEMORY_H
15 15
16#define PLAT_PHYS_OFFSET UL(0x48000000) 16#define PLAT_PHYS_OFFSET UL(0x48000000)
17#define BOOT_PARAMS_OFFSET (PLAT_PHYS_OFFSET + 0x100) 17#define BOOT_PARAMS_OFFSET 0x100
18
19/*
20 * We enable a real big DMA buffer if need be.
21 */
22#define CONSISTENT_DMA_SIZE SZ_4M
23 18
24#endif 19#endif
diff --git a/arch/arm/mach-u300/u300.c b/arch/arm/mach-u300/u300.c
index 25d11bac2a10..89422ee7f3a8 100644
--- a/arch/arm/mach-u300/u300.c
+++ b/arch/arm/mach-u300/u300.c
@@ -46,7 +46,7 @@ static void __init u300_init_machine(void)
46 46
47MACHINE_START(U300, MACH_U300_STRING) 47MACHINE_START(U300, MACH_U300_STRING)
48 /* Maintainer: Linus Walleij <linus.walleij@stericsson.com> */ 48 /* Maintainer: Linus Walleij <linus.walleij@stericsson.com> */
49 .boot_params = BOOT_PARAMS_OFFSET, 49 .atag_offset = BOOT_PARAMS_OFFSET,
50 .map_io = u300_map_io, 50 .map_io = u300_map_io,
51 .init_irq = u300_init_irq, 51 .init_irq = u300_init_irq,
52 .timer = &u300_timer, 52 .timer = &u300_timer,