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
powerpc
platforms
wsp
chroma.c
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2011, IBM Corporation
3
*
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version
7
* 2 of the License, or (at your option) any later version.
8
*/
9
10
#include <
linux/delay.h
>
11
#include <
linux/init.h
>
12
#include <
linux/irq.h
>
13
#include <linux/kernel.h>
14
#include <
linux/mm.h
>
15
#include <
linux/of.h
>
16
#include <
linux/smp.h
>
17
#include <linux/time.h>
18
19
#include <asm/machdep.h>
20
#include <
asm/udbg.h
>
21
22
#include "
ics.h
"
23
#include "
wsp.h
"
24
25
void
__init
chroma_setup_arch
(
void
)
26
{
27
wsp_setup_arch
();
28
wsp_setup_h8
();
29
30
}
31
32
static
int
__init
chroma_probe(
void
)
33
{
34
unsigned
long
root
= of_get_flat_dt_root();
35
36
if
(!of_flat_dt_is_compatible(root,
"ibm,wsp-chroma"
))
37
return
0;
38
39
return
1;
40
}
41
42
define_machine
(chroma_md) {
43
.name =
"Chroma PCIe"
,
44
.probe = chroma_probe,
45
.setup_arch =
chroma_setup_arch
,
46
.restart =
wsp_h8_restart
,
47
.power_off =
wsp_h8_power_off
,
48
.halt =
wsp_halt
,
49
.calibrate_decr =
generic_calibrate_decr
,
50
.init_IRQ =
wsp_setup_irq
,
51
.progress =
udbg_progress
,
52
.power_save = book3e_idle,
53
};
54
55
machine_arch_initcall
(chroma_md,
wsp_probe_devices
);
Generated on Thu Jan 10 2013 13:15:59 for Linux Kernel by
1.8.2