p3041_ds.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * P3041 DS Setup
  3. *
  4. * Maintained by Kumar Gala (see MAINTAINERS for contact information)
  5. *
  6. * Copyright 2009-2010 Freescale Semiconductor Inc.
  7. *
  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.
  12. */
  13. #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>
  19. #include <asm/system.h>
  20. #include <asm/time.h>
  21. #include <asm/machdep.h>
  22. #include <asm/pci-bridge.h>
  23. #include <mm/mmu_decl.h>
  24. #include <asm/prom.h>
  25. #include <asm/udbg.h>
  26. #include <asm/mpic.h>
  27. #include <linux/of_platform.h>
  28. #include <sysdev/fsl_soc.h>
  29. #include <sysdev/fsl_pci.h>
  30. #include "corenet_ds.h"
  31. /*
  32. * Called very early, device-tree isn't unflattened
  33. */
  34. static int __init p3041_ds_probe(void)
  35. {
  36. unsigned long root = of_get_flat_dt_root();
  37. return of_flat_dt_is_compatible(root, "fsl,P3041DS");
  38. }
  39. define_machine(p3041_ds) {
  40. .name = "P3041 DS",
  41. .probe = p3041_ds_probe,
  42. .setup_arch = corenet_ds_setup_arch,
  43. .init_IRQ = corenet_ds_pic_init,
  44. #ifdef CONFIG_PCI
  45. .pcibios_fixup_bus = fsl_pcibios_fixup_bus,
  46. #endif
  47. .get_irq = mpic_get_coreint_irq,
  48. .restart = fsl_rstcr_restart,
  49. .calibrate_decr = generic_calibrate_decr,
  50. .progress = udbg_progress,
  51. };
  52. machine_device_initcall(p3041_ds, corenet_ds_publish_devices);
  53. #ifdef CONFIG_SWIOTLB
  54. machine_arch_initcall(p3041_ds, swiotlb_setup_bus_notifier);
  55. #endif