powerpc/powernv: Report size of OPAL memcons log
[linux/fpc-iii.git] / arch / powerpc / platforms / 85xx / c293pcie.c
blob4df1b4026eab4002a588afa5ad8fc887ca3bdc01
1 /*
2 * C293PCIE Board Setup
4 * Copyright 2013 Freescale Semiconductor Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #include <linux/stddef.h>
13 #include <linux/kernel.h>
14 #include <linux/of_fdt.h>
15 #include <linux/of_platform.h>
17 #include <asm/machdep.h>
18 #include <asm/udbg.h>
19 #include <asm/mpic.h>
21 #include <sysdev/fsl_soc.h>
22 #include <sysdev/fsl_pci.h>
24 #include "mpc85xx.h"
26 void __init c293_pcie_pic_init(void)
28 struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
29 MPIC_SINGLE_DEST_CPU, 0, 256, " OpenPIC ");
31 BUG_ON(mpic == NULL);
33 mpic_init(mpic);
38 * Setup the architecture
40 static void __init c293_pcie_setup_arch(void)
42 if (ppc_md.progress)
43 ppc_md.progress("c293_pcie_setup_arch()", 0);
45 fsl_pci_assign_primary();
47 printk(KERN_INFO "C293 PCIE board from Freescale Semiconductor\n");
50 machine_arch_initcall(c293_pcie, mpc85xx_common_publish_devices);
53 * Called very early, device-tree isn't unflattened
55 static int __init c293_pcie_probe(void)
57 if (of_machine_is_compatible("fsl,C293PCIE"))
58 return 1;
59 return 0;
62 define_machine(c293_pcie) {
63 .name = "C293 PCIE",
64 .probe = c293_pcie_probe,
65 .setup_arch = c293_pcie_setup_arch,
66 .init_IRQ = c293_pcie_pic_init,
67 .get_irq = mpic_get_irq,
68 .calibrate_decr = generic_calibrate_decr,
69 .progress = udbg_progress,