blob: c174bd04c0de67dff0264ea275e66e474d3f5e28 [file] [log] [blame]
Ilya Yanok1dc4da72009-06-08 04:12:45 +04001/*
2 *
3 * (c) 2009 Ilya Yanok, Emcraft Systems <yanok@emcraft.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Ilya Yanok1dc4da72009-06-08 04:12:45 +04006 */
7
8#ifndef __ASM_ARCH_CLOCK_H
9#define __ASM_ARCH_CLOCK_H
Ilya Yanok1dc4da72009-06-08 04:12:45 +040010
Helmut Raigerfa47a282012-01-11 03:59:22 +000011enum mxc_clock {
12 MXC_ARM_CLK,
trem79713f02013-06-14 18:21:22 +020013 MXC_I2C_CLK,
Helmut Raigerfa47a282012-01-11 03:59:22 +000014 MXC_UART_CLK,
15 MXC_ESDHC_CLK,
16 MXC_FEC_CLK,
17};
Ilya Yanok1dc4da72009-06-08 04:12:45 +040018
Helmut Raigerfa47a282012-01-11 03:59:22 +000019unsigned int mxc_get_clock(enum mxc_clock clk);
20#define imx_get_uartclk() mxc_get_clock(MXC_UART_CLK)
21#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
John Rigbye911c982010-01-25 23:12:51 -070022
Ilya Yanok1dc4da72009-06-08 04:12:45 +040023#endif /* __ASM_ARCH_CLOCK_H */