mpc836x_rdk.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * MPC8360E-RDK board file.
  3. *
  4. * Copyright (c) 2006 Freescale Semiconductor, Inc.
  5. * Copyright (c) 2007-2008 MontaVista Software, Inc.
  6. *
  7. * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. #include <linux/kernel.h>
  15. #include <linux/pci.h>
  16. #include <linux/of_platform.h>
  17. #include <linux/io.h>
  18. #include <asm/prom.h>
  19. #include <asm/time.h>
  20. #include <asm/ipic.h>
  21. #include <asm/udbg.h>
  22. #include <soc/fsl/qe/qe.h>
  23. #include <soc/fsl/qe/qe_ic.h>
  24. #include <sysdev/fsl_soc.h>
  25. #include <sysdev/fsl_pci.h>
  26. #include "mpc83xx.h"
  27. machine_device_initcall(mpc836x_rdk, mpc83xx_declare_of_platform_devices);
  28. static void __init mpc836x_rdk_setup_arch(void)
  29. {
  30. if (ppc_md.progress)
  31. ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
  32. mpc83xx_setup_pci();
  33. }
  34. /*
  35. * Called very early, MMU is off, device-tree isn't unflattened.
  36. */
  37. static int __init mpc836x_rdk_probe(void)
  38. {
  39. return of_machine_is_compatible("fsl,mpc8360rdk");
  40. }
  41. define_machine(mpc836x_rdk) {
  42. .name = "MPC836x RDK",
  43. .probe = mpc836x_rdk_probe,
  44. .setup_arch = mpc836x_rdk_setup_arch,
  45. .init_IRQ = mpc83xx_ipic_and_qe_init_IRQ,
  46. .get_irq = ipic_get_irq,
  47. .restart = mpc83xx_restart,
  48. .time_init = mpc83xx_time_init,
  49. .calibrate_decr = generic_calibrate_decr,
  50. .progress = udbg_progress,
  51. };