mpc512x_generic.c 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2007,2008 Freescale Semiconductor, Inc. All rights reserved.
  4. *
  5. * Author: John Rigby, <jrigby@freescale.com>
  6. *
  7. * Description:
  8. * MPC512x SoC setup
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/of.h>
  12. #include <asm/machdep.h>
  13. #include <asm/ipic.h>
  14. #include <asm/time.h>
  15. #include "mpc512x.h"
  16. /*
  17. * list of supported boards
  18. */
  19. static const char * const board[] __initconst = {
  20. "prt,prtlvt",
  21. "fsl,mpc5125ads",
  22. "ifm,ac14xx",
  23. NULL
  24. };
  25. /*
  26. * Called very early, MMU is off, device-tree isn't unflattened
  27. */
  28. static int __init mpc512x_generic_probe(void)
  29. {
  30. mpc512x_init_early();
  31. return 1;
  32. }
  33. define_machine(mpc512x_generic) {
  34. .name = "MPC512x generic",
  35. .compatibles = board,
  36. .probe = mpc512x_generic_probe,
  37. .init = mpc512x_init,
  38. .setup_arch = mpc512x_setup_arch,
  39. .init_IRQ = mpc512x_init_IRQ,
  40. .get_irq = ipic_get_irq,
  41. .restart = mpc512x_restart,
  42. };