4 * Maintained by Kumar Gala (see MAINTAINERS for contact information)
6 * Copyright 2009-2010 Freescale Semiconductor Inc.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
14 #include <linux/kernel.h>
15 #include <linux/pci.h>
16 #include <linux/kdev_t.h>
17 #include <linux/delay.h>
18 #include <linux/interrupt.h>
19 #include <linux/phy.h>
21 #include <asm/system.h>
23 #include <asm/machdep.h>
24 #include <asm/pci-bridge.h>
25 #include <mm/mmu_decl.h>
30 #include <linux/of_platform.h>
31 #include <sysdev/fsl_soc.h>
32 #include <sysdev/fsl_pci.h>
34 #include "corenet_ds.h"
37 * Called very early, device-tree isn't unflattened
39 static int __init
p3041_ds_probe(void)
41 unsigned long root
= of_get_flat_dt_root();
43 return of_flat_dt_is_compatible(root
, "fsl,P3041DS");
46 define_machine(p3041_ds
) {
48 .probe
= p3041_ds_probe
,
49 .setup_arch
= corenet_ds_setup_arch
,
50 .init_IRQ
= corenet_ds_pic_init
,
52 .pcibios_fixup_bus
= fsl_pcibios_fixup_bus
,
54 .get_irq
= mpic_get_coreint_irq
,
55 .restart
= fsl_rstcr_restart
,
56 .calibrate_decr
= generic_calibrate_decr
,
57 .progress
= udbg_progress
,
60 machine_device_initcall(p3041_ds
, corenet_ds_publish_devices
);
63 machine_arch_initcall(p3041_ds
, swiotlb_setup_bus_notifier
);