blob: ab96431cbb60a355662fa1857beab9385d664432 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ilya Yanok416a41f2009-06-08 04:12:45 +04002/*
3 *
4 * (c) 2009 Ilya Yanok, Emcraft Systems <yanok@emcraft.com>
Ilya Yanok416a41f2009-06-08 04:12:45 +04005 */
6
7#ifndef __ASM_ARCH_CLOCK_H
8#define __ASM_ARCH_CLOCK_H
Ilya Yanok416a41f2009-06-08 04:12:45 +04009
Helmut Raiger64c316d2012-01-11 03:59:22 +000010enum mxc_clock {
11 MXC_ARM_CLK,
tremaeb445f2013-06-14 18:21:22 +020012 MXC_I2C_CLK,
Helmut Raiger64c316d2012-01-11 03:59:22 +000013 MXC_UART_CLK,
14 MXC_ESDHC_CLK,
15 MXC_FEC_CLK,
16};
Ilya Yanok416a41f2009-06-08 04:12:45 +040017
Helmut Raiger64c316d2012-01-11 03:59:22 +000018unsigned int mxc_get_clock(enum mxc_clock clk);
19#define imx_get_uartclk() mxc_get_clock(MXC_UART_CLK)
20#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
John Rigby7656c452010-01-25 23:12:51 -070021
Ilya Yanok416a41f2009-06-08 04:12:45 +040022#endif /* __ASM_ARCH_CLOCK_H */