board-dt.c 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * arch/arm/mach-dove/board-dt.c
  3. *
  4. * Marvell Dove 88AP510 System On Chip FDT Board
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/clk-provider.h>
  12. #include <linux/clocksource.h>
  13. #include <linux/irqchip.h>
  14. #include <linux/of.h>
  15. #include <linux/of_platform.h>
  16. #include <linux/platform_data/usb-ehci-orion.h>
  17. #include <asm/hardware/cache-tauros2.h>
  18. #include <asm/mach/arch.h>
  19. #include <mach/dove.h>
  20. #include <mach/pm.h>
  21. #include <plat/common.h>
  22. #include <plat/irq.h>
  23. #include "common.h"
  24. static void __init dove_dt_time_init(void)
  25. {
  26. of_clk_init(NULL);
  27. clocksource_of_init();
  28. }
  29. static void __init dove_dt_init(void)
  30. {
  31. pr_info("Dove 88AP510 SoC\n");
  32. #ifdef CONFIG_CACHE_TAUROS2
  33. tauros2_init(0);
  34. #endif
  35. BUG_ON(mvebu_mbus_dt_init());
  36. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  37. }
  38. static const char * const dove_dt_board_compat[] = {
  39. "marvell,dove",
  40. NULL
  41. };
  42. DT_MACHINE_START(DOVE_DT, "Marvell Dove (Flattened Device Tree)")
  43. .map_io = dove_map_io,
  44. .init_time = dove_dt_time_init,
  45. .init_machine = dove_dt_init,
  46. .restart = dove_restart,
  47. .dt_compat = dove_dt_board_compat,
  48. MACHINE_END