18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2015 Linaro Ltd.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __SOC_IMX_TIMER_H__
78c2ecf20Sopenharmony_ci#define __SOC_IMX_TIMER_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cienum imx_gpt_type {
108c2ecf20Sopenharmony_ci	GPT_TYPE_IMX1,		/* i.MX1 */
118c2ecf20Sopenharmony_ci	GPT_TYPE_IMX21,		/* i.MX21/27 */
128c2ecf20Sopenharmony_ci	GPT_TYPE_IMX31,		/* i.MX31/35/25/37/51/6Q */
138c2ecf20Sopenharmony_ci	GPT_TYPE_IMX6DL,	/* i.MX6DL/SX/SL */
148c2ecf20Sopenharmony_ci};
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/*
178c2ecf20Sopenharmony_ci * This is a stop-gap solution for clock drivers like imx1/imx21 which call
188c2ecf20Sopenharmony_ci * mxc_timer_init() to initialize timer for non-DT boot.  It can be removed
198c2ecf20Sopenharmony_ci * when these legacy non-DT support is converted or dropped.
208c2ecf20Sopenharmony_ci */
218c2ecf20Sopenharmony_civoid mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type);
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#endif  /* __SOC_IMX_TIMER_H__ */
24