mpc834x_itx.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * arch/powerpc/platforms/83xx/mpc834x_itx.c
  3. *
  4. * MPC834x ITX board specific routines
  5. *
  6. * Maintainer: Kumar Gala <galak@kernel.crashing.org>
  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/stddef.h>
  14. #include <linux/kernel.h>
  15. #include <linux/init.h>
  16. #include <linux/errno.h>
  17. #include <linux/reboot.h>
  18. #include <linux/pci.h>
  19. #include <linux/kdev_t.h>
  20. #include <linux/major.h>
  21. #include <linux/console.h>
  22. #include <linux/delay.h>
  23. #include <linux/seq_file.h>
  24. #include <linux/root_dev.h>
  25. #include <linux/of_platform.h>
  26. #include <linux/atomic.h>
  27. #include <asm/time.h>
  28. #include <asm/io.h>
  29. #include <asm/machdep.h>
  30. #include <asm/ipic.h>
  31. #include <asm/irq.h>
  32. #include <asm/prom.h>
  33. #include <asm/udbg.h>
  34. #include <sysdev/fsl_soc.h>
  35. #include <sysdev/fsl_pci.h>
  36. #include "mpc83xx.h"
  37. static const struct of_device_id mpc834x_itx_ids[] __initconst = {
  38. { .compatible = "fsl,pq2pro-localbus", },
  39. {},
  40. };
  41. static int __init mpc834x_itx_declare_of_platform_devices(void)
  42. {
  43. mpc83xx_declare_of_platform_devices();
  44. return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL);
  45. }
  46. machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices);
  47. /* ************************************************************************
  48. *
  49. * Setup the architecture
  50. *
  51. */
  52. static void __init mpc834x_itx_setup_arch(void)
  53. {
  54. mpc83xx_setup_arch();
  55. mpc834x_usb_cfg();
  56. }
  57. /*
  58. * Called very early, MMU is off, device-tree isn't unflattened
  59. */
  60. static int __init mpc834x_itx_probe(void)
  61. {
  62. return of_machine_is_compatible("MPC834xMITX");
  63. }
  64. define_machine(mpc834x_itx) {
  65. .name = "MPC834x ITX",
  66. .probe = mpc834x_itx_probe,
  67. .setup_arch = mpc834x_itx_setup_arch,
  68. .init_IRQ = mpc83xx_ipic_init_IRQ,
  69. .get_irq = ipic_get_irq,
  70. .restart = mpc83xx_restart,
  71. .time_init = mpc83xx_time_init,
  72. .calibrate_decr = generic_calibrate_decr,
  73. .progress = udbg_progress,
  74. };