diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/generic.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-at91/setup.c | 20 |
2 files changed, 0 insertions, 22 deletions
diff --git a/arch/arm/mach-at91/generic.h b/arch/arm/mach-at91/generic.h index fae7a703813c..1823a779182d 100644 --- a/arch/arm/mach-at91/generic.h +++ b/arch/arm/mach-at91/generic.h | |||
@@ -17,8 +17,6 @@ | |||
17 | /* Map io */ | 17 | /* Map io */ |
18 | extern void __init at91_map_io(void); | 18 | extern void __init at91_map_io(void); |
19 | extern void __init at91_alt_map_io(void); | 19 | extern void __init at91_alt_map_io(void); |
20 | extern void __init at91_init_sram(int bank, unsigned long base, | ||
21 | unsigned int length); | ||
22 | 20 | ||
23 | /* Processors */ | 21 | /* Processors */ |
24 | extern void __init at91_dt_initialize(void); | 22 | extern void __init at91_dt_initialize(void); |
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c index e3c21b458bb8..4c184285d38f 100644 --- a/arch/arm/mach-at91/setup.c +++ b/arch/arm/mach-at91/setup.c | |||
@@ -34,26 +34,6 @@ EXPORT_SYMBOL(at91_soc_initdata); | |||
34 | void __iomem *at91_ramc_base[2]; | 34 | void __iomem *at91_ramc_base[2]; |
35 | EXPORT_SYMBOL_GPL(at91_ramc_base); | 35 | EXPORT_SYMBOL_GPL(at91_ramc_base); |
36 | 36 | ||
37 | static struct map_desc sram_desc[2] __initdata; | ||
38 | |||
39 | void __init at91_init_sram(int bank, unsigned long base, unsigned int length) | ||
40 | { | ||
41 | struct map_desc *desc = &sram_desc[bank]; | ||
42 | |||
43 | desc->virtual = (unsigned long)AT91_IO_VIRT_BASE - length; | ||
44 | if (bank > 0) | ||
45 | desc->virtual -= sram_desc[bank - 1].length; | ||
46 | |||
47 | desc->pfn = __phys_to_pfn(base); | ||
48 | desc->length = length; | ||
49 | desc->type = MT_MEMORY_RWX_NONCACHED; | ||
50 | |||
51 | pr_info("sram at 0x%lx of 0x%x mapped at 0x%lx\n", | ||
52 | base, length, desc->virtual); | ||
53 | |||
54 | iotable_init(desc, 1); | ||
55 | } | ||
56 | |||
57 | static struct map_desc at91_io_desc __initdata __maybe_unused = { | 37 | static struct map_desc at91_io_desc __initdata __maybe_unused = { |
58 | .virtual = (unsigned long)AT91_VA_BASE_SYS, | 38 | .virtual = (unsigned long)AT91_VA_BASE_SYS, |
59 | .pfn = __phys_to_pfn(AT91_BASE_SYS), | 39 | .pfn = __phys_to_pfn(AT91_BASE_SYS), |