diff options
Diffstat (limited to 'arch/arm/mach-prima2')
-rw-r--r-- | arch/arm/mach-prima2/include/mach/debug-macro.S | 2 | ||||
-rw-r--r-- | arch/arm/mach-prima2/include/mach/memory.h | 21 | ||||
-rw-r--r-- | arch/arm/mach-prima2/l2x0.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-prima2/prima2.c | 3 |
4 files changed, 5 insertions, 26 deletions
diff --git a/arch/arm/mach-prima2/include/mach/debug-macro.S b/arch/arm/mach-prima2/include/mach/debug-macro.S index bf75106333ff..cd97492bb075 100644 --- a/arch/arm/mach-prima2/include/mach/debug-macro.S +++ b/arch/arm/mach-prima2/include/mach/debug-macro.S | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <mach/hardware.h> | 9 | #include <mach/hardware.h> |
10 | #include <mach/uart.h> | 10 | #include <mach/uart.h> |
11 | 11 | ||
12 | .macro addruart, rp, rv | 12 | .macro addruart, rp, rv, tmp |
13 | ldr \rp, =SIRFSOC_UART1_PA_BASE @ physical | 13 | ldr \rp, =SIRFSOC_UART1_PA_BASE @ physical |
14 | ldr \rv, =SIRFSOC_UART1_VA_BASE @ virtual | 14 | ldr \rv, =SIRFSOC_UART1_VA_BASE @ virtual |
15 | .endm | 15 | .endm |
diff --git a/arch/arm/mach-prima2/include/mach/memory.h b/arch/arm/mach-prima2/include/mach/memory.h deleted file mode 100644 index 368cd5a0601a..000000000000 --- a/arch/arm/mach-prima2/include/mach/memory.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-prima2/include/mach/memory.h | ||
3 | * | ||
4 | * Copyright (c) 2010 – 2011 Cambridge Silicon Radio Limited, a CSR plc group company. | ||
5 | * | ||
6 | * Licensed under GPLv2 or later. | ||
7 | */ | ||
8 | |||
9 | #ifndef __ASM_ARCH_MEMORY_H | ||
10 | #define __ASM_ARCH_MEMORY_H | ||
11 | |||
12 | #define PLAT_PHYS_OFFSET UL(0x00000000) | ||
13 | |||
14 | /* | ||
15 | * Restrict DMA-able region to workaround silicon limitation. | ||
16 | * The limitation restricts buffers available for DMA to SD/MMC | ||
17 | * hardware to be below 256MB | ||
18 | */ | ||
19 | #define ARM_DMA_ZONE_SIZE (SZ_256M) | ||
20 | |||
21 | #endif | ||
diff --git a/arch/arm/mach-prima2/l2x0.c b/arch/arm/mach-prima2/l2x0.c index 9cda2057bcfb..66c6387e5a04 100644 --- a/arch/arm/mach-prima2/l2x0.c +++ b/arch/arm/mach-prima2/l2x0.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/of.h> | 13 | #include <linux/of.h> |
14 | #include <linux/of_address.h> | 14 | #include <linux/of_address.h> |
15 | #include <asm/hardware/cache-l2x0.h> | 15 | #include <asm/hardware/cache-l2x0.h> |
16 | #include <mach/memory.h> | ||
17 | 16 | ||
18 | #define L2X0_ADDR_FILTERING_START 0xC00 | 17 | #define L2X0_ADDR_FILTERING_START 0xC00 |
19 | #define L2X0_ADDR_FILTERING_END 0xC04 | 18 | #define L2X0_ADDR_FILTERING_END 0xC04 |
@@ -41,9 +40,9 @@ static int __init sirfsoc_of_l2x_init(void) | |||
41 | /* | 40 | /* |
42 | * set the physical memory windows L2 cache will cover | 41 | * set the physical memory windows L2 cache will cover |
43 | */ | 42 | */ |
44 | writel_relaxed(PLAT_PHYS_OFFSET + 1024 * 1024 * 1024, | 43 | writel_relaxed(PHYS_OFFSET + 1024 * 1024 * 1024, |
45 | sirfsoc_l2x_base + L2X0_ADDR_FILTERING_END); | 44 | sirfsoc_l2x_base + L2X0_ADDR_FILTERING_END); |
46 | writel_relaxed(PLAT_PHYS_OFFSET | 0x1, | 45 | writel_relaxed(PHYS_OFFSET | 0x1, |
47 | sirfsoc_l2x_base + L2X0_ADDR_FILTERING_START); | 46 | sirfsoc_l2x_base + L2X0_ADDR_FILTERING_START); |
48 | 47 | ||
49 | writel_relaxed(0, | 48 | writel_relaxed(0, |
diff --git a/arch/arm/mach-prima2/prima2.c b/arch/arm/mach-prima2/prima2.c index f57124bdd143..ee33c3d458f5 100644 --- a/arch/arm/mach-prima2/prima2.c +++ b/arch/arm/mach-prima2/prima2.c | |||
@@ -31,11 +31,12 @@ static const char *prima2cb_dt_match[] __initdata = { | |||
31 | 31 | ||
32 | MACHINE_START(PRIMA2_EVB, "prima2cb") | 32 | MACHINE_START(PRIMA2_EVB, "prima2cb") |
33 | /* Maintainer: Barry Song <baohua.song@csr.com> */ | 33 | /* Maintainer: Barry Song <baohua.song@csr.com> */ |
34 | .boot_params = 0x00000100, | 34 | .atag_offset = 0x100, |
35 | .init_early = sirfsoc_of_clk_init, | 35 | .init_early = sirfsoc_of_clk_init, |
36 | .map_io = sirfsoc_map_lluart, | 36 | .map_io = sirfsoc_map_lluart, |
37 | .init_irq = sirfsoc_of_irq_init, | 37 | .init_irq = sirfsoc_of_irq_init, |
38 | .timer = &sirfsoc_timer, | 38 | .timer = &sirfsoc_timer, |
39 | .dma_zone_size = SZ_256M, | ||
39 | .init_machine = sirfsoc_mach_init, | 40 | .init_machine = sirfsoc_mach_init, |
40 | .dt_compat = prima2cb_dt_match, | 41 | .dt_compat = prima2cb_dt_match, |
41 | MACHINE_END | 42 | MACHINE_END |