mach-vf610.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright 2012-2013 Freescale Semiconductor, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. */
  9. #include <linux/of_platform.h>
  10. #include <linux/clocksource.h>
  11. #include <linux/irqchip.h>
  12. #include <linux/clk-provider.h>
  13. #include <asm/mach/arch.h>
  14. #include <asm/hardware/cache-l2x0.h>
  15. #include "common.h"
  16. static void __init vf610_init_machine(void)
  17. {
  18. mxc_arch_reset_init_dt();
  19. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  20. }
  21. static void __init vf610_init_irq(void)
  22. {
  23. l2x0_of_init(0, ~0UL);
  24. irqchip_init();
  25. }
  26. static void __init vf610_init_time(void)
  27. {
  28. of_clk_init(NULL);
  29. clocksource_of_init();
  30. }
  31. static const char *vf610_dt_compat[] __initdata = {
  32. "fsl,vf610",
  33. NULL,
  34. };
  35. DT_MACHINE_START(VYBRID_VF610, "Freescale Vybrid VF610 (Device Tree)")
  36. .init_irq = vf610_init_irq,
  37. .init_time = vf610_init_time,
  38. .init_machine = vf610_init_machine,
  39. .dt_compat = vf610_dt_compat,
  40. .restart = mxc_restart,
  41. MACHINE_END