Path: blob/master/arch/powerpc/platforms/85xx/p3041_ds.c
10820 views
/*1* P3041 DS Setup2*3* Maintained by Kumar Gala (see MAINTAINERS for contact information)4*5* Copyright 2009-2010 Freescale Semiconductor Inc.6*7* This program is free software; you can redistribute it and/or modify it8* under the terms of the GNU General Public License as published by the9* Free Software Foundation; either version 2 of the License, or (at your10* option) any later version.11*/1213#include <linux/kernel.h>14#include <linux/pci.h>15#include <linux/kdev_t.h>16#include <linux/delay.h>17#include <linux/interrupt.h>18#include <linux/phy.h>1920#include <asm/system.h>21#include <asm/time.h>22#include <asm/machdep.h>23#include <asm/pci-bridge.h>24#include <mm/mmu_decl.h>25#include <asm/prom.h>26#include <asm/udbg.h>27#include <asm/mpic.h>2829#include <linux/of_platform.h>30#include <sysdev/fsl_soc.h>31#include <sysdev/fsl_pci.h>3233#include "corenet_ds.h"3435/*36* Called very early, device-tree isn't unflattened37*/38static int __init p3041_ds_probe(void)39{40unsigned long root = of_get_flat_dt_root();4142return of_flat_dt_is_compatible(root, "fsl,P3041DS");43}4445define_machine(p3041_ds) {46.name = "P3041 DS",47.probe = p3041_ds_probe,48.setup_arch = corenet_ds_setup_arch,49.init_IRQ = corenet_ds_pic_init,50#ifdef CONFIG_PCI51.pcibios_fixup_bus = fsl_pcibios_fixup_bus,52#endif53.get_irq = mpic_get_coreint_irq,54.restart = fsl_rstcr_restart,55.calibrate_decr = generic_calibrate_decr,56.progress = udbg_progress,57};5859machine_device_initcall(p3041_ds, corenet_ds_publish_devices);6061#ifdef CONFIG_SWIOTLB62machine_arch_initcall(p3041_ds, swiotlb_setup_bus_notifier);63#endif646566