/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* PROM library functions for acquiring/using memory descriptors given to6* us from the YAMON.7*8* Copyright (C) 1999,2000,2012 MIPS Technologies, Inc.9* All rights reserved.10* Authors: Carsten Langgaard <[email protected]>11* Steven J. Hill <[email protected]>12*/13#include <linux/init.h>14#include <linux/memblock.h>15#include <linux/string.h>1617#include <asm/bootinfo.h>18#include <asm/cdmm.h>19#include <asm/maar.h>20#include <asm/sections.h>21#include <asm/fw/fw.h>2223/* determined physical memory size, not overridden by command line args */24unsigned long physical_memsize = 0L;2526static void free_init_pages_eva_malta(void *begin, void *end)27{28free_init_pages("unused kernel", __pa_symbol((unsigned long *)begin),29__pa_symbol((unsigned long *)end));30}3132void __init fw_meminit(void)33{34bool eva = IS_ENABLED(CONFIG_EVA);3536free_init_pages_eva = eva ? free_init_pages_eva_malta : NULL;37}3839phys_addr_t mips_cdmm_phys_base(void)40{41/* This address is "typically unused" */42return 0x1fc10000;43}444546