prom.c 771 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * rbtx4938 specific prom routines
  3. * Copyright (C) 2000-2001 Toshiba Corporation
  4. *
  5. * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
  6. * terms of the GNU General Public License version 2. This program is
  7. * licensed "as is" without any warranty of any kind, whether express
  8. * or implied.
  9. *
  10. * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
  11. */
  12. #include <linux/init.h>
  13. #include <linux/bootmem.h>
  14. #include <asm/bootinfo.h>
  15. #include <asm/txx9/generic.h>
  16. #include <asm/txx9/rbtx4938.h>
  17. void __init rbtx4938_prom_init(void)
  18. {
  19. extern int tx4938_get_mem_size(void);
  20. int msize;
  21. #ifndef CONFIG_TX4938_NAND_BOOT
  22. prom_init_cmdline();
  23. #endif
  24. msize = tx4938_get_mem_size();
  25. add_memory_region(0, msize << 20, BOOT_MEM_RAM);
  26. }