powerpc/powernv: Report size of OPAL memcons log
[linux/fpc-iii.git] / arch / powerpc / platforms / 44x / ebony.c
blob1070225f5f9b88589019cf2037b7e780e455913c
1 /*
2 * Ebony board specific routines
4 * Matt Porter <mporter@kernel.crashing.org>
5 * Copyright 2002-2005 MontaVista Software Inc.
7 * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
8 * Copyright (c) 2003-2005 Zultys Technologies
10 * Rewritten and ported to the merged powerpc tree:
11 * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation.
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version.
19 #include <linux/init.h>
20 #include <linux/of_platform.h>
21 #include <linux/rtc.h>
23 #include <asm/machdep.h>
24 #include <asm/prom.h>
25 #include <asm/udbg.h>
26 #include <asm/time.h>
27 #include <asm/uic.h>
28 #include <asm/pci-bridge.h>
29 #include <asm/ppc4xx.h>
31 static const struct of_device_id ebony_of_bus[] __initconst = {
32 { .compatible = "ibm,plb4", },
33 { .compatible = "ibm,opb", },
34 { .compatible = "ibm,ebc", },
35 {},
38 static int __init ebony_device_probe(void)
40 of_platform_bus_probe(NULL, ebony_of_bus, NULL);
41 of_instantiate_rtc();
43 return 0;
45 machine_device_initcall(ebony, ebony_device_probe);
48 * Called very early, MMU is off, device-tree isn't unflattened
50 static int __init ebony_probe(void)
52 if (!of_machine_is_compatible("ibm,ebony"))
53 return 0;
55 pci_set_flags(PCI_REASSIGN_ALL_RSRC);
57 return 1;
60 define_machine(ebony) {
61 .name = "Ebony",
62 .probe = ebony_probe,
63 .progress = udbg_progress,
64 .init_IRQ = uic_init_tree,
65 .get_irq = uic_get_irq,
66 .restart = ppc4xx_reset_system,
67 .calibrate_decr = generic_calibrate_decr,