Eddy Petrișor | 5178dc1 | 2016-06-05 03:43:00 +0300 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2015-2016, Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __ASM_ARCH_CLOCK_H |
| 8 | #define __ASM_ARCH_CLOCK_H |
| 9 | |
| 10 | #include <common.h> |
| 11 | |
| 12 | enum mxc_clock { |
| 13 | MXC_ARM_CLK = 0, |
| 14 | MXC_BUS_CLK, |
| 15 | MXC_PERIPHERALS_CLK, |
| 16 | MXC_UART_CLK, |
| 17 | MXC_USDHC_CLK, |
| 18 | MXC_FEC_CLK, |
| 19 | MXC_I2C_CLK, |
| 20 | }; |
| 21 | enum pll_type { |
| 22 | ARM_PLL = 0, |
| 23 | PERIPH_PLL, |
| 24 | ENET_PLL, |
| 25 | DDR_PLL, |
| 26 | VIDEO_PLL, |
| 27 | }; |
| 28 | |
| 29 | unsigned int mxc_get_clock(enum mxc_clock clk); |
| 30 | void clock_init(void); |
| 31 | |
| 32 | #define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK) |
| 33 | |
| 34 | #endif /* __ASM_ARCH_CLOCK_H */ |