From 4d9f77d2526840fc2b3d4dcaedfd2f633a6d5426 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 13 Apr 2013 13:15:47 +0200 Subject: 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 Patchwork: http://patchwork.linux-mips.org/patch/5178/ --- arch/mips/include/asm/bootinfo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/mips/include/asm/bootinfo.h') 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); -- cgit