mmp2-dt.c 840 B

1234567891011121314151617181920212223242526272829303132333435363738
  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 <[email protected]>
  7. */
  8. #include <linux/io.h>
  9. #include <linux/irqchip.h>
  10. #include <linux/of_platform.h>
  11. #include <linux/of_clk.h>
  12. #include <linux/clocksource.h>
  13. #include <asm/mach/arch.h>
  14. #include <asm/mach/time.h>
  15. #include <asm/hardware/cache-tauros2.h>
  16. #include "common.h"
  17. static void __init mmp_init_time(void)
  18. {
  19. #ifdef CONFIG_CACHE_TAUROS2
  20. tauros2_init(0);
  21. #endif
  22. of_clk_init(NULL);
  23. timer_probe();
  24. }
  25. static const char *const mmp2_dt_board_compat[] __initconst = {
  26. "mrvl,mmp2",
  27. NULL,
  28. };
  29. DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
  30. .map_io = mmp2_map_io,
  31. .init_time = mmp_init_time,
  32. .dt_compat = mmp2_dt_board_compat,
  33. MACHINE_END