/arch/mips/vr4181/osprey/prom.c

https://bitbucket.org/evzijst/gittest · C · 49 lines · 21 code · 5 blank · 23 comment · 0 complexity · dbf8fa1f9e0215e4851145a7da4dcd9f MD5 · raw file

  1. /*
  2. * Copyright 2001 MontaVista Software Inc.
  3. * Author: jsun@mvista.com or jsun@junsun.net
  4. *
  5. * arch/mips/vr4181/osprey/prom.c
  6. * prom code for osprey.
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. *
  13. */
  14. #include <linux/init.h>
  15. #include <linux/kernel.h>
  16. #include <linux/string.h>
  17. #include <linux/mm.h>
  18. #include <linux/bootmem.h>
  19. #include <asm/bootinfo.h>
  20. #include <asm/addrspace.h>
  21. const char *get_system_type(void)
  22. {
  23. return "NEC_Vr41xx Osprey";
  24. }
  25. /*
  26. * [jsun] right now we assume it is the nec debug monitor, which does
  27. * not pass any arguments.
  28. */
  29. void __init prom_init(void)
  30. {
  31. // cmdline is now set in default config
  32. // strcpy(arcs_cmdline, "ip=bootp ");
  33. // strcat(arcs_cmdline, "ether=46,0x03fe0300,eth0 ");
  34. // strcpy(arcs_cmdline, "ether=0,0x0300,eth0 "
  35. // strcat(arcs_cmdline, "video=vr4181fb:xres:240,yres:320,bpp:8 ");
  36. mips_machgroup = MACH_GROUP_NEC_VR41XX;
  37. mips_machtype = MACH_NEC_OSPREY;
  38. /* 16MB fixed */
  39. add_memory_region(0, 16 << 20, BOOT_MEM_RAM);
  40. }
  41. unsigned long __init prom_free_prom_memory(void)
  42. {
  43. return 0;
  44. }