mmp2-dt.c 733 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * linux/arch/arm/mach-mmp/mmp2-dt.c
  4. *
  5. * Copyright (C) 2012 Marvell Technology Group Ltd.
  6. * Author: Haojian Zhuang <haojian.zhuang@marvell.com>
  7. */
  8. #include <linux/of_clk.h>
  9. #include <linux/clocksource.h>
  10. #include <asm/mach/arch.h>
  11. #include <asm/hardware/cache-tauros2.h>
  12. #include "common.h"
  13. static void __init mmp_init_time(void)
  14. {
  15. #ifdef CONFIG_CACHE_TAUROS2
  16. tauros2_init(0);
  17. #endif
  18. of_clk_init(NULL);
  19. timer_probe();
  20. }
  21. static const char *const mmp2_dt_board_compat[] __initconst = {
  22. "mrvl,mmp2",
  23. NULL,
  24. };
  25. DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
  26. .map_io = mmp2_map_io,
  27. .init_time = mmp_init_time,
  28. .dt_compat = mmp2_dt_board_compat,
  29. MACHINE_END