Path: blob/master/arch/mips/pnx8550/stb810/prom_init.c
10818 views
/*1* STB810 specific prom routines2*3* Author: MontaVista Software, Inc.4* [email protected]5*6* Copyright 2005 MontaVista Software Inc.7*8* This program is free software; you can redistribute it and/or modify it9* under the terms of the GNU General Public License as published by the10* Free Software Foundation; either version 2 of the License, or (at your11* option) any later version.12*/1314#include <linux/init.h>15#include <linux/mm.h>16#include <linux/sched.h>17#include <linux/bootmem.h>18#include <asm/addrspace.h>19#include <asm/bootinfo.h>20#include <linux/string.h>21#include <linux/kernel.h>2223int prom_argc;24char **prom_argv, **prom_envp;25extern void __init prom_init_cmdline(void);26extern char *prom_getenv(char *envname);2728const char *get_system_type(void)29{30return "NXP PNX8950/STB810";31}3233void __init prom_init(void)34{35unsigned long memsize;3637prom_argc = (int) fw_arg0;38prom_argv = (char **) fw_arg1;39prom_envp = (char **) fw_arg2;4041prom_init_cmdline();4243memsize = 0x08000000; /* Trimedia uses memory above */44add_memory_region(0, memsize, BOOT_MEM_RAM);45}464748