mmp2-dt.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * linux/arch/arm/mach-mmp/mmp2-dt.c
  3. *
  4. * Copyright (C) 2012 Marvell Technology Group Ltd.
  5. * Author: Haojian Zhuang <haojian.zhuang@marvell.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * publishhed by the Free Software Foundation.
  10. */
  11. #include <linux/io.h>
  12. #include <linux/irqchip.h>
  13. #include <linux/of_platform.h>
  14. #include <linux/clk-provider.h>
  15. #include <asm/mach/arch.h>
  16. #include <asm/mach/time.h>
  17. #include <asm/hardware/cache-tauros2.h>
  18. #include "common.h"
  19. extern void __init mmp_dt_init_timer(void);
  20. static void __init mmp_init_time(void)
  21. {
  22. #ifdef CONFIG_CACHE_TAUROS2
  23. tauros2_init(0);
  24. #endif
  25. mmp_dt_init_timer();
  26. of_clk_init(NULL);
  27. }
  28. static const char *const mmp2_dt_board_compat[] __initconst = {
  29. "mrvl,mmp2-brownstone",
  30. NULL,
  31. };
  32. DT_MACHINE_START(MMP2_DT, "Marvell MMP2 (Device Tree Support)")
  33. .map_io = mmp_map_io,
  34. .init_time = mmp_init_time,
  35. .dt_compat = mmp2_dt_board_compat,
  36. MACHINE_END