timer.h 786 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2015 Linaro Ltd.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __SOC_IMX_TIMER_H__
  9. #define __SOC_IMX_TIMER_H__
  10. enum imx_gpt_type {
  11. GPT_TYPE_IMX1, /* i.MX1 */
  12. GPT_TYPE_IMX21, /* i.MX21/27 */
  13. GPT_TYPE_IMX31, /* i.MX31/35/25/37/51/6Q */
  14. GPT_TYPE_IMX6DL, /* i.MX6DL/SX/SL */
  15. };
  16. /*
  17. * This is a stop-gap solution for clock drivers like imx1/imx21 which call
  18. * mxc_timer_init() to initialize timer for non-DT boot. It can be removed
  19. * when these legacy non-DT support is converted or dropped.
  20. */
  21. void mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type);
  22. #endif /* __SOC_IMX_TIMER_H__ */