kbuild: Fix instrumentation removal breakage on avr32
[wrt350n-kernel.git] / arch / powerpc / platforms / 44x / taishan.c
blob28ab7e2e02c391b024292b560180bd060aef5116
1 /*
2 * Taishan board specific routines based off ebony.c code
3 * original copyrights below
5 * Matt Porter <mporter@kernel.crashing.org>
6 * Copyright 2002-2005 MontaVista Software Inc.
8 * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
9 * Copyright (c) 2003-2005 Zultys Technologies
11 * Rewritten and ported to the merged powerpc tree:
12 * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation.
14 * Modified from ebony.c for taishan:
15 * Copyright 2007 Hugh Blemings <hugh@au.ibm.com>, IBM Corporation.
17 * This program is free software; you can redistribute it and/or modify it
18 * under the terms of the GNU General Public License as published by the
19 * Free Software Foundation; either version 2 of the License, or (at your
20 * option) any later version.
23 #include <linux/init.h>
24 #include <linux/of_platform.h>
26 #include <asm/machdep.h>
27 #include <asm/prom.h>
28 #include <asm/udbg.h>
29 #include <asm/time.h>
30 #include <asm/uic.h>
31 #include <asm/pci-bridge.h>
33 #include "44x.h"
35 static __initdata struct of_device_id taishan_of_bus[] = {
36 { .compatible = "ibm,plb4", },
37 { .compatible = "ibm,opb", },
38 { .compatible = "ibm,ebc", },
39 {},
42 static int __init taishan_device_probe(void)
44 of_platform_bus_probe(NULL, taishan_of_bus, NULL);
46 return 0;
48 machine_device_initcall(taishan, taishan_device_probe);
51 * Called very early, MMU is off, device-tree isn't unflattened
53 static int __init taishan_probe(void)
55 unsigned long root = of_get_flat_dt_root();
57 if (!of_flat_dt_is_compatible(root, "amcc,taishan"))
58 return 0;
60 ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;
62 return 1;
65 define_machine(taishan) {
66 .name = "Taishan",
67 .probe = taishan_probe,
68 .progress = udbg_progress,
69 .init_IRQ = uic_init_tree,
70 .get_irq = uic_get_irq,
71 .restart = ppc44x_reset_system,
72 .calibrate_decr = generic_calibrate_decr,