2 * Copyright (C) 2009 Lemote Inc.
3 * Author: Wu Zhangjin, wuzj@lemote.com
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.
11 #include <linux/bootmem.h>
15 void __init prom_init(void)
17 /* init base address of io space */
18 set_io_port_base((unsigned long)
19 ioremap(LOONGSON_PCIIO_BASE, LOONGSON_PCIIO_SIZE));
25 /*init the uart base address */
26 #if defined(CONFIG_EARLY_PRINTK) || defined(CONFIG_SERIAL_8250)
27 prom_init_uart_base();
31 void __init prom_free_prom_memory(void)