diff options
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r-- | arch/arm/mm/mmu.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index e6344ece00ce..fdaa9bb87c16 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -255,6 +255,7 @@ const struct mem_type *get_mem_type(unsigned int type) | |||
255 | { | 255 | { |
256 | return type < ARRAY_SIZE(mem_types) ? &mem_types[type] : NULL; | 256 | return type < ARRAY_SIZE(mem_types) ? &mem_types[type] : NULL; |
257 | } | 257 | } |
258 | EXPORT_SYMBOL(get_mem_type); | ||
258 | 259 | ||
259 | /* | 260 | /* |
260 | * Adjust the PMD section entries according to the CPU in use. | 261 | * Adjust the PMD section entries according to the CPU in use. |
@@ -839,6 +840,20 @@ void __init reserve_node_zero(pg_data_t *pgdat) | |||
839 | reserve_bootmem_node(pgdat, 0xa0200000, 0x1000, | 840 | reserve_bootmem_node(pgdat, 0xa0200000, 0x1000, |
840 | BOOTMEM_EXCLUSIVE); | 841 | BOOTMEM_EXCLUSIVE); |
841 | 842 | ||
843 | /* | ||
844 | * U300 - This platform family can share physical memory | ||
845 | * between two ARM cpus, one running Linux and the other | ||
846 | * running another OS. | ||
847 | */ | ||
848 | if (machine_is_u300()) { | ||
849 | #ifdef CONFIG_MACH_U300_SINGLE_RAM | ||
850 | #if ((CONFIG_MACH_U300_ACCESS_MEM_SIZE & 1) == 1) && \ | ||
851 | CONFIG_MACH_U300_2MB_ALIGNMENT_FIX | ||
852 | res_size = 0x00100000; | ||
853 | #endif | ||
854 | #endif | ||
855 | } | ||
856 | |||
842 | #ifdef CONFIG_SA1111 | 857 | #ifdef CONFIG_SA1111 |
843 | /* | 858 | /* |
844 | * Because of the SA1111 DMA bug, we want to preserve our | 859 | * Because of the SA1111 DMA bug, we want to preserve our |