board-dt.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/of.h>
  13. #include <linux/of_platform.h>
  14. #include <asm/hardware/cache-tauros2.h>
  15. #include <asm/mach/arch.h>
  16. #include <mach/dove.h>
  17. #include <mach/pm.h>
  18. #include <plat/common.h>
  19. #include "common.h"
  20. static void __init dove_dt_init(void)
  21. {
  22. pr_info("Dove 88AP510 SoC\n");
  23. #ifdef CONFIG_CACHE_TAUROS2
  24. tauros2_init(0);
  25. #endif
  26. BUG_ON(mvebu_mbus_dt_init());
  27. of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
  28. }
  29. static const char * const dove_dt_board_compat[] = {
  30. "marvell,dove",
  31. NULL
  32. };
  33. DT_MACHINE_START(DOVE_DT, "Marvell Dove (Flattened Device Tree)")
  34. .map_io = dove_map_io,
  35. .init_machine = dove_dt_init,
  36. .restart = dove_restart,
  37. .dt_compat = dove_dt_board_compat,
  38. MACHINE_END