1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2819833afSPeter Tyser /* 3819833afSPeter Tyser * 4819833afSPeter Tyser * (c) 2009 Ilya Yanok, Emcraft Systems <yanok@emcraft.com> 5819833afSPeter Tyser */ 6819833afSPeter Tyser 7819833afSPeter Tyser #ifndef __ASM_ARCH_CLOCK_H 8819833afSPeter Tyser #define __ASM_ARCH_CLOCK_H 9819833afSPeter Tyser 10fa47a286SHelmut Raiger enum mxc_clock { 11fa47a286SHelmut Raiger MXC_ARM_CLK, 1279713f0aStrem MXC_I2C_CLK, 13fa47a286SHelmut Raiger MXC_UART_CLK, 14fa47a286SHelmut Raiger MXC_ESDHC_CLK, 15fa47a286SHelmut Raiger MXC_FEC_CLK, 16fa47a286SHelmut Raiger }; 17819833afSPeter Tyser 18fa47a286SHelmut Raiger unsigned int mxc_get_clock(enum mxc_clock clk); 19fa47a286SHelmut Raiger #define imx_get_uartclk() mxc_get_clock(MXC_UART_CLK) 20fa47a286SHelmut Raiger #define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK) 21819833afSPeter Tyser 22819833afSPeter Tyser #endif /* __ASM_ARCH_CLOCK_H */ 23