MIPS: replace add_memory_region with memblock
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
@@ -90,13 +90,6 @@ const char *get_system_type(void);
|
||||
|
||||
extern unsigned long mips_machtype;
|
||||
|
||||
#define BOOT_MEM_RAM 1
|
||||
#define BOOT_MEM_ROM_DATA 2
|
||||
#define BOOT_MEM_RESERVED 3
|
||||
#define BOOT_MEM_INIT_RAM 4
|
||||
#define BOOT_MEM_NOMAP 5
|
||||
|
||||
extern void add_memory_region(phys_addr_t start, phys_addr_t size, long type);
|
||||
extern void detect_memory_region(phys_addr_t start, phys_addr_t sz_min, phys_addr_t sz_max);
|
||||
|
||||
extern void prom_init(void);
|
||||
|
||||
@@ -87,6 +87,7 @@ struct nlm_boot_mem_map {
|
||||
uint32_t type; /* type of memory segment */
|
||||
} map[NLM_BOOT_MEM_MAP_MAX];
|
||||
};
|
||||
#define NLM_BOOT_MEM_RAM 1
|
||||
|
||||
/* Pointer to saved boot loader info */
|
||||
extern struct psb_info nlm_prom_info;
|
||||
|
||||
Reference in New Issue
Block a user