···11+/*22+ * P3041 DS Setup33+ *44+ * Maintained by Kumar Gala (see MAINTAINERS for contact information)55+ *66+ * Copyright 2009-2010 Freescale Semiconductor Inc.77+ *88+ * This program is free software; you can redistribute it and/or modify it99+ * under the terms of the GNU General Public License as published by the1010+ * Free Software Foundation; either version 2 of the License, or (at your1111+ * option) any later version.1212+ */1313+1414+#include <linux/kernel.h>1515+#include <linux/pci.h>1616+#include <linux/kdev_t.h>1717+#include <linux/delay.h>1818+#include <linux/interrupt.h>1919+#include <linux/phy.h>2020+2121+#include <asm/system.h>2222+#include <asm/time.h>2323+#include <asm/machdep.h>2424+#include <asm/pci-bridge.h>2525+#include <mm/mmu_decl.h>2626+#include <asm/prom.h>2727+#include <asm/udbg.h>2828+#include <asm/mpic.h>2929+3030+#include <linux/of_platform.h>3131+#include <sysdev/fsl_soc.h>3232+#include <sysdev/fsl_pci.h>3333+3434+#include "corenet_ds.h"3535+3636+/*3737+ * Called very early, device-tree isn't unflattened3838+ */3939+static int __init p3041_ds_probe(void)4040+{4141+ unsigned long root = of_get_flat_dt_root();4242+4343+ return of_flat_dt_is_compatible(root, "fsl,P3041DS");4444+}4545+4646+define_machine(p3041_ds) {4747+ .name = "P3041 DS",4848+ .probe = p3041_ds_probe,4949+ .setup_arch = corenet_ds_setup_arch,5050+ .init_IRQ = corenet_ds_pic_init,5151+#ifdef CONFIG_PCI5252+ .pcibios_fixup_bus = fsl_pcibios_fixup_bus,5353+#endif5454+ .get_irq = mpic_get_coreint_irq,5555+ .restart = fsl_rstcr_restart,5656+ .calibrate_decr = generic_calibrate_decr,5757+ .progress = udbg_progress,5858+};5959+6060+machine_device_initcall(p3041_ds, corenet_ds_publish_devices);6161+6262+#ifdef CONFIG_SWIOTLB6363+machine_arch_initcall(p3041_ds, swiotlb_setup_bus_notifier);6464+#endif