init.c 787 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2009 Lemote Inc.
  3. * Author: Wu Zhangjin, wuzj@lemote.com
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. */
  10. #include <linux/bootmem.h>
  11. #include <loongson.h>
  12. void __init prom_init(void)
  13. {
  14. /* init base address of io space */
  15. set_io_port_base((unsigned long)
  16. ioremap(LOONGSON_PCIIO_BASE, LOONGSON_PCIIO_SIZE));
  17. prom_init_cmdline();
  18. prom_init_env();
  19. prom_init_memory();
  20. /*init the uart base address */
  21. #if defined(CONFIG_EARLY_PRINTK) || defined(CONFIG_SERIAL_8250)
  22. prom_init_uart_base();
  23. #endif
  24. }
  25. void __init prom_free_prom_memory(void)
  26. {
  27. }