2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2009-06-08 00:12:45 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* (c) 2009 Ilya Yanok, Emcraft Systems <yanok@emcraft.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_CLOCK_H
|
|
|
|
#define __ASM_ARCH_CLOCK_H
|
|
|
|
|
2012-01-11 03:59:22 +00:00
|
|
|
enum mxc_clock {
|
|
|
|
MXC_ARM_CLK,
|
2013-06-14 16:21:22 +00:00
|
|
|
MXC_I2C_CLK,
|
2012-01-11 03:59:22 +00:00
|
|
|
MXC_UART_CLK,
|
|
|
|
MXC_ESDHC_CLK,
|
|
|
|
MXC_FEC_CLK,
|
|
|
|
};
|
2009-06-08 00:12:45 +00:00
|
|
|
|
2012-01-11 03:59:22 +00:00
|
|
|
unsigned int mxc_get_clock(enum mxc_clock clk);
|
|
|
|
#define imx_get_uartclk() mxc_get_clock(MXC_UART_CLK)
|
|
|
|
#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
|
2010-01-26 06:12:51 +00:00
|
|
|
|
2009-06-08 00:12:45 +00:00
|
|
|
#endif /* __ASM_ARCH_CLOCK_H */
|