x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
[linux/fpc-iii.git] / arch / powerpc / platforms / 85xx / c293pcie.c
blob6208e49142bfe8c1f5a87f196f07771c20bb235a
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_platform.h>
16 #include <asm/machdep.h>
17 #include <asm/udbg.h>
18 #include <asm/mpic.h>
20 #include <sysdev/fsl_soc.h>
21 #include <sysdev/fsl_pci.h>
23 #include "mpc85xx.h"
25 void __init c293_pcie_pic_init(void)
27 struct mpic *mpic = mpic_alloc(NULL, 0, MPIC_BIG_ENDIAN |
28 MPIC_SINGLE_DEST_CPU, 0, 256, " OpenPIC ");
30 BUG_ON(mpic == NULL);
32 mpic_init(mpic);
37 * Setup the architecture
39 static void __init c293_pcie_setup_arch(void)
41 if (ppc_md.progress)
42 ppc_md.progress("c293_pcie_setup_arch()", 0);
44 fsl_pci_assign_primary();
46 printk(KERN_INFO "C293 PCIE board from Freescale Semiconductor\n");
49 machine_arch_initcall(c293_pcie, mpc85xx_common_publish_devices);
52 * Called very early, device-tree isn't unflattened
54 static int __init c293_pcie_probe(void)
56 unsigned long root = of_get_flat_dt_root();
58 if (of_flat_dt_is_compatible(root, "fsl,C293PCIE"))
59 return 1;
60 return 0;
63 define_machine(c293_pcie) {
64 .name = "C293 PCIE",
65 .probe = c293_pcie_probe,
66 .setup_arch = c293_pcie_setup_arch,
67 .init_IRQ = c293_pcie_pic_init,
68 #ifdef CONFIG_PCI
69 .pcibios_fixup_bus = fsl_pcibios_fixup_bus,
70 #endif
71 .get_irq = mpic_get_irq,
72 .restart = fsl_rstcr_restart,
73 .calibrate_decr = generic_calibrate_decr,
74 .progress = udbg_progress,