Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2015 Linaro Ltd.
0004  */
0005 
0006 #ifndef __SOC_IMX_TIMER_H__
0007 #define __SOC_IMX_TIMER_H__
0008 
0009 enum imx_gpt_type {
0010     GPT_TYPE_IMX1,      /* i.MX1 */
0011     GPT_TYPE_IMX21,     /* i.MX21/27 */
0012     GPT_TYPE_IMX31,     /* i.MX31/35/25/37/51/6Q */
0013     GPT_TYPE_IMX6DL,    /* i.MX6DL/SX/SL */
0014 };
0015 
0016 /*
0017  * This is a stop-gap solution for clock drivers like imx1/imx21 which call
0018  * mxc_timer_init() to initialize timer for non-DT boot.  It can be removed
0019  * when these legacy non-DT support is converted or dropped.
0020  */
0021 void mxc_timer_init(unsigned long pbase, int irq, enum imx_gpt_type type);
0022 
0023 #endif  /* __SOC_IMX_TIMER_H__ */