aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/bootinfo.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-13 13:15:47 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-05-08 01:19:11 +0200
commit4d9f77d2526840fc2b3d4dcaedfd2f633a6d5426 (patch)
tree7efbfc22a32c23dc886855b325b88e7356a4f355 /arch/mips/include/asm/bootinfo.h
parentDT: MIPS: ralink: add MT7620A dts files (diff)
downloadlinux-dev-4d9f77d2526840fc2b3d4dcaedfd2f633a6d5426.tar.xz
linux-dev-4d9f77d2526840fc2b3d4dcaedfd2f633a6d5426.zip
MIPS: add detect_memory_region()
Add a generic way of detecting the available RAM. This function is based on the implementation already used by ath79. Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/5178/
Diffstat (limited to 'arch/mips/include/asm/bootinfo.h')
-rw-r--r--arch/mips/include/asm/bootinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
index b71dd5b16085..4d2cdea5aa37 100644
--- a/arch/mips/include/asm/bootinfo.h
+++ b/arch/mips/include/asm/bootinfo.h
@@ -104,6 +104,7 @@ struct boot_mem_map {
extern struct boot_mem_map boot_mem_map;
extern void add_memory_region(phys_t start, phys_t size, long type);
+extern void detect_memory_region(phys_t start, phys_t sz_min, phys_t sz_max);
extern void prom_init(void);
extern void prom_free_prom_memory(void);