2 * Copyright 2008-2011, IBM Corporation
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.
10 #include <linux/delay.h>
11 #include <linux/init.h>
12 #include <linux/irq.h>
13 #include <linux/kernel.h>
16 #include <linux/smp.h>
17 #include <linux/time.h>
19 #include <asm/machdep.h>
20 #include <asm/system.h>
26 void __init
chroma_setup_arch(void)
33 static int __init
chroma_probe(void)
35 unsigned long root
= of_get_flat_dt_root();
37 if (!of_flat_dt_is_compatible(root
, "ibm,wsp-chroma"))
43 define_machine(chroma_md
) {
44 .name
= "Chroma PCIe",
45 .probe
= chroma_probe
,
46 .setup_arch
= chroma_setup_arch
,
47 .restart
= wsp_h8_restart
,
48 .power_off
= wsp_h8_power_off
,
50 .calibrate_decr
= generic_calibrate_decr
,
51 .init_IRQ
= wsp_setup_irq
,
52 .progress
= udbg_progress
,
53 .power_save
= book3e_idle
,
56 machine_arch_initcall(chroma_md
, wsp_probe_devices
);