mmp-dt.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * linux/arch/arm/mach-mmp/mmp-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/irqchip.h>
  12. #include <linux/of_platform.h>
  13. #include <linux/clk-provider.h>
  14. #include <asm/mach/arch.h>
  15. #include <asm/mach/time.h>
  16. #include <asm/hardware/cache-tauros2.h>
  17. #include "common.h"
  18. extern void __init mmp_dt_init_timer(void);
  19. static const char *const pxa168_dt_board_compat[] __initconst = {
  20. "mrvl,pxa168-aspenite",
  21. NULL,
  22. };
  23. static const char *const pxa910_dt_board_compat[] __initconst = {
  24. "mrvl,pxa910-dkb",
  25. NULL,
  26. };
  27. static void __init mmp_init_time(void)
  28. {
  29. #ifdef CONFIG_CACHE_TAUROS2
  30. tauros2_init(0);
  31. #endif
  32. mmp_dt_init_timer();
  33. of_clk_init(NULL);
  34. }
  35. DT_MACHINE_START(PXA168_DT, "Marvell PXA168 (Device Tree Support)")
  36. .map_io = mmp_map_io,
  37. .init_time = mmp_init_time,
  38. .dt_compat = pxa168_dt_board_compat,
  39. MACHINE_END
  40. DT_MACHINE_START(PXA910_DT, "Marvell PXA910 (Device Tree Support)")
  41. .map_io = mmp_map_io,
  42. .init_time = mmp_init_time,
  43. .dt_compat = pxa910_dt_board_compat,
  44. MACHINE_END