p4080_ds.c 1.5 KB

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