aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/lemote/lm2e/mem.c
diff options
context:
space:
mode:
authorWu Zhangjin <wuzj@lemote.com>2009-07-02 11:22:36 -0400
committerRalf Baechle <ralf@linux-mips.org>2009-09-17 14:07:46 -0400
commitbd92aa013e8fcd17328ec8e060477761cf3380d9 (patch)
tree0435f611a87d8be266c44629c80a2fd7459ef026 /arch/mips/lemote/lm2e/mem.c
parentf54a40ee6b3cb4da638d7705e433bc80aa4f49f6 (diff)
MIPS: Loongson: Split the implementation of prom and setup parts
This patch split the old initilization and setup implementation to several file, one file one logic function. the other main changes include: 1. as the script/checkpatch.pl suggests, use strict_strtol instead of simple_strtol in arch/mips/lemote/lm2e/cmdline.c 2. use the existed macros in asm/mips-boards/bonito64.h as the arguments of set_io_port_base() and remove the un-needed ones in asm/mach-lemote/pci.h Signed-off-by: Wu Zhangjin <wuzj@lemote.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lemote/lm2e/mem.c')
-rw-r--r--arch/mips/lemote/lm2e/mem.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/lemote/lm2e/mem.c b/arch/mips/lemote/lm2e/mem.c
index 16cd21587d34..f24af70b669b 100644
--- a/arch/mips/lemote/lm2e/mem.c
+++ b/arch/mips/lemote/lm2e/mem.c
@@ -8,6 +8,19 @@
8#include <linux/fcntl.h> 8#include <linux/fcntl.h>
9#include <linux/mm.h> 9#include <linux/mm.h>
10 10
11#include <asm/bootinfo.h>
12
13extern unsigned long memsize, highmemsize;
14
15void __init prom_init_memory(void)
16{
17 add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
18#ifdef CONFIG_64BIT
19 if (highmemsize > 0)
20 add_memory_region(0x20000000, highmemsize << 20, BOOT_MEM_RAM);
21#endif /* CONFIG_64BIT */
22}
23
11/* override of arch/mips/mm/cache.c: __uncached_access */ 24/* override of arch/mips/mm/cache.c: __uncached_access */
12int __uncached_access(struct file *file, unsigned long addr) 25int __uncached_access(struct file *file, unsigned long addr)
13{ 26{