]> bbs.cooldavid.org Git - net-next-2.6.git/blob - arch/mips/loongson/common/init.c
MIPS: Loongson: Cleanup the serial port support
[net-next-2.6.git] / arch / mips / loongson / common / init.c
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
11 #include <linux/bootmem.h>
12
13 #include <loongson.h>
14
15 void __init prom_init(void)
16 {
17         /* init base address of io space */
18         set_io_port_base((unsigned long)
19                 ioremap(LOONGSON_PCIIO_BASE, LOONGSON_PCIIO_SIZE));
20
21         prom_init_cmdline();
22         prom_init_env();
23         prom_init_memory();
24
25         /*init the uart base address */
26 #if defined(CONFIG_EARLY_PRINTK) || defined(CONFIG_SERIAL_8250)
27         prom_init_uart_base();
28 #endif
29 }
30
31 void __init prom_free_prom_memory(void)
32 {
33 }