asp834x.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * arch/powerpc/platforms/83xx/asp834x.c
  3. *
  4. * Analogue & Micro ASP8347 board specific routines
  5. * clone of mpc834x_itx
  6. *
  7. * Copyright 2008 Codehermit
  8. *
  9. * Maintainer: Bryan O'Donoghue <bodonoghue@codhermit.ie>
  10. *
  11. * This program is free software; you can redistribute it and/or modify it
  12. * under the terms of the GNU General Public License as published by the
  13. * Free Software Foundation; either version 2 of the License, or (at your
  14. * option) any later version.
  15. */
  16. #include <linux/pci.h>
  17. #include <linux/of_platform.h>
  18. #include <asm/time.h>
  19. #include <asm/ipic.h>
  20. #include <asm/udbg.h>
  21. #include "mpc83xx.h"
  22. /* ************************************************************************
  23. *
  24. * Setup the architecture
  25. *
  26. */
  27. static void __init asp834x_setup_arch(void)
  28. {
  29. if (ppc_md.progress)
  30. ppc_md.progress("asp834x_setup_arch()", 0);
  31. mpc834x_usb_cfg();
  32. }
  33. machine_device_initcall(asp834x, mpc83xx_declare_of_platform_devices);
  34. /*
  35. * Called very early, MMU is off, device-tree isn't unflattened
  36. */
  37. static int __init asp834x_probe(void)
  38. {
  39. return of_machine_is_compatible("analogue-and-micro,asp8347e");
  40. }
  41. define_machine(asp834x) {
  42. .name = "ASP8347E",
  43. .probe = asp834x_probe,
  44. .setup_arch = asp834x_setup_arch,
  45. .init_IRQ = mpc83xx_ipic_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. };