Ilya Yanok | 1dc4da7 | 2009-06-08 04:12:45 +0400 | [diff] [blame] | 1 | /* |
| 2 | * |
| 3 | * (c) 2009 Ilya Yanok, Emcraft Systems <yanok@emcraft.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Ilya Yanok | 1dc4da7 | 2009-06-08 04:12:45 +0400 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __ASM_ARCH_CLOCK_H |
| 9 | #define __ASM_ARCH_CLOCK_H |
Ilya Yanok | 1dc4da7 | 2009-06-08 04:12:45 +0400 | [diff] [blame] | 10 | |
Helmut Raiger | fa47a28 | 2012-01-11 03:59:22 +0000 | [diff] [blame] | 11 | enum mxc_clock { |
| 12 | MXC_ARM_CLK, |
trem | 79713f0 | 2013-06-14 18:21:22 +0200 | [diff] [blame] | 13 | MXC_I2C_CLK, |
Helmut Raiger | fa47a28 | 2012-01-11 03:59:22 +0000 | [diff] [blame] | 14 | MXC_UART_CLK, |
| 15 | MXC_ESDHC_CLK, |
| 16 | MXC_FEC_CLK, |
| 17 | }; |
Ilya Yanok | 1dc4da7 | 2009-06-08 04:12:45 +0400 | [diff] [blame] | 18 | |
Helmut Raiger | fa47a28 | 2012-01-11 03:59:22 +0000 | [diff] [blame] | 19 | unsigned 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 Rigby | e911c98 | 2010-01-25 23:12:51 -0700 | [diff] [blame] | 22 | |
Ilya Yanok | 1dc4da7 | 2009-06-08 04:12:45 +0400 | [diff] [blame] | 23 | #endif /* __ASM_ARCH_CLOCK_H */ |