Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
mips
loongson
common
init.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009 Lemote Inc.
3
* Author: Wu Zhangjin,
[email protected]
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
/* Loongson CPU address windows config space base address */
16
unsigned
long
__maybe_unused
_loongson_addrwincfg_base
;
17
18
void
__init
prom_init
(
void
)
19
{
20
/* init base address of io space */
21
set_io_port_base((
unsigned
long
)
22
ioremap
(
LOONGSON_PCIIO_BASE
,
LOONGSON_PCIIO_SIZE
));
23
24
#ifdef CONFIG_CPU_SUPPORTS_ADDRWINCFG
25
_loongson_addrwincfg_base
= (
unsigned
long
)
26
ioremap
(LOONGSON_ADDRWINCFG_BASE, LOONGSON_ADDRWINCFG_SIZE);
27
#endif
28
29
prom_init_cmdline
();
30
prom_init_env
();
31
prom_init_memory
();
32
33
/*init the uart base address */
34
prom_init_uart_base();
35
}
36
37
void
__init
prom_free_prom_memory
(
void
)
38
{
39
}
Generated on Thu Jan 10 2013 12:54:01 for Linux Kernel by
1.8.2