time.c 517 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (C) 2005-2013 Imagination Technologies Ltd.
  3. *
  4. * This file contains the Meta-specific time handling details.
  5. *
  6. */
  7. #include <clocksource/metag_generic.h>
  8. #include <linux/clk-provider.h>
  9. #include <linux/init.h>
  10. #include <asm/clock.h>
  11. void __init time_init(void)
  12. {
  13. #ifdef CONFIG_COMMON_CLK
  14. /* Init clocks from device tree */
  15. of_clk_init(NULL);
  16. #endif
  17. /* Init meta clocks, particularly the core clock */
  18. init_metag_clocks();
  19. /* Set up the timer clock sources */
  20. metag_generic_timer_init();
  21. }