sbc834x.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * arch/powerpc/platforms/83xx/sbc834x.c
  3. *
  4. * Wind River SBC834x board specific routines
  5. *
  6. * By Paul Gortmaker (see MAINTAINERS for contact information)
  7. *
  8. * Based largely on the mpc834x_mds.c support by Kumar Gala.
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. */
  15. #include <linux/stddef.h>
  16. #include <linux/kernel.h>
  17. #include <linux/init.h>
  18. #include <linux/errno.h>
  19. #include <linux/reboot.h>
  20. #include <linux/pci.h>
  21. #include <linux/kdev_t.h>
  22. #include <linux/major.h>
  23. #include <linux/console.h>
  24. #include <linux/delay.h>
  25. #include <linux/seq_file.h>
  26. #include <linux/root_dev.h>
  27. #include <linux/of_platform.h>
  28. #include <linux/atomic.h>
  29. #include <asm/time.h>
  30. #include <asm/io.h>
  31. #include <asm/machdep.h>
  32. #include <asm/ipic.h>
  33. #include <asm/irq.h>
  34. #include <asm/prom.h>
  35. #include <asm/udbg.h>
  36. #include <sysdev/fsl_soc.h>
  37. #include <sysdev/fsl_pci.h>
  38. #include "mpc83xx.h"
  39. /* ************************************************************************
  40. *
  41. * Setup the architecture
  42. *
  43. */
  44. static void __init sbc834x_setup_arch(void)
  45. {
  46. mpc83xx_setup_arch();
  47. }
  48. machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices);
  49. /*
  50. * Called very early, MMU is off, device-tree isn't unflattened
  51. */
  52. static int __init sbc834x_probe(void)
  53. {
  54. return of_machine_is_compatible("SBC834xE");
  55. }
  56. define_machine(sbc834x) {
  57. .name = "SBC834xE",
  58. .probe = sbc834x_probe,
  59. .setup_arch = sbc834x_setup_arch,
  60. .init_IRQ = mpc83xx_ipic_init_IRQ,
  61. .get_irq = ipic_get_irq,
  62. .restart = mpc83xx_restart,
  63. .time_init = mpc83xx_time_init,
  64. .calibrate_decr = generic_calibrate_decr,
  65. .progress = udbg_progress,
  66. };