mmp-dt.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * linux/arch/arm/mach-mmp/mmp-dt.c
  4. *
  5. * Copyright (C) 2012 Marvell Technology Group Ltd.
  6. * Author: Haojian Zhuang <[email protected]>
  7. */
  8. #include <linux/irqchip.h>
  9. #include <linux/of_platform.h>
  10. #include <linux/of_clk.h>
  11. #include <linux/clocksource.h>
  12. #include <asm/mach/arch.h>
  13. #include <asm/mach/time.h>
  14. #include <asm/hardware/cache-tauros2.h>
  15. #include "common.h"
  16. static const char *const pxa168_dt_board_compat[] __initconst = {
  17. "mrvl,pxa168-aspenite",
  18. NULL,
  19. };
  20. static const char *const pxa910_dt_board_compat[] __initconst = {
  21. "mrvl,pxa910-dkb",
  22. NULL,
  23. };
  24. static void __init mmp_init_time(void)
  25. {
  26. #ifdef CONFIG_CACHE_TAUROS2
  27. tauros2_init(0);
  28. #endif
  29. of_clk_init(NULL);
  30. timer_probe();
  31. }
  32. DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
  33. .map_io = mmp_map_io,
  34. .init_time = mmp_init_time,
  35. .dt_compat = pxa168_dt_board_compat,
  36. MACHINE_END
  37. DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
  38. .map_io = mmp_map_io,
  39. .init_time = mmp_init_time,
  40. .dt_compat = pxa910_dt_board_compat,
  41. MACHINE_END