prom_init.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * STB810 specific prom routines
  3. *
  4. * Author: MontaVista Software, Inc.
  5. * source@mvista.com
  6. *
  7. * Copyright 2005 MontaVista Software Inc.
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. #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>
  22. int prom_argc;
  23. char **prom_argv, **prom_envp;
  24. extern void __init prom_init_cmdline(void);
  25. extern char *prom_getenv(char *envname);
  26. const char *get_system_type(void)
  27. {
  28. return "NXP PNX8950/STB810";
  29. }
  30. void __init prom_init(void)
  31. {
  32. unsigned long memsize;
  33. prom_argc = (int) fw_arg0;
  34. prom_argv = (char **) fw_arg1;
  35. prom_envp = (char **) fw_arg2;
  36. prom_init_cmdline();
  37. memsize = 0x08000000; /* Trimedia uses memory above */
  38. add_memory_region(0, memsize, BOOT_MEM_RAM);
  39. }