init.c 988 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. /* Loongson CPU address windows config space base address */
  13. unsigned long __maybe_unused _loongson_addrwincfg_base;
  14. void __init prom_init(void)
  15. {
  16. /* init base address of io space */
  17. set_io_port_base((unsigned long)
  18. ioremap(LOONGSON_PCIIO_BASE, LOONGSON_PCIIO_SIZE));
  19. #ifdef CONFIG_CPU_SUPPORTS_ADDRWINCFG
  20. _loongson_addrwincfg_base = (unsigned long)
  21. ioremap(LOONGSON_ADDRWINCFG_BASE, LOONGSON_ADDRWINCFG_SIZE);
  22. #endif
  23. prom_init_cmdline();
  24. prom_init_env();
  25. prom_init_memory();
  26. /*init the uart base address */
  27. prom_init_uart_base();
  28. }
  29. void __init prom_free_prom_memory(void)
  30. {
  31. }