Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2013 Freescale Semiconductor, Inc. |
Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_ARCH_CLOCK_H |
| 7 | #define __ASM_ARCH_CLOCK_H |
| 8 | |
Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 9 | enum mxc_clock { |
| 10 | MXC_ARM_CLK = 0, |
| 11 | MXC_BUS_CLK, |
| 12 | MXC_IPG_CLK, |
| 13 | MXC_UART_CLK, |
| 14 | MXC_ESDHC_CLK, |
| 15 | MXC_FEC_CLK, |
Alison Wang | 86bef20 | 2013-06-17 15:30:38 +0800 | [diff] [blame] | 16 | MXC_I2C_CLK, |
Bhuvanchandra DV | 860c180 | 2015-06-01 18:37:19 +0530 | [diff] [blame] | 17 | MXC_DSPI_CLK, |
Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | void enable_ocotp_clk(unsigned char enable); |
| 21 | unsigned int mxc_get_clock(enum mxc_clock clk); |
Peng Fan | 836a6cc | 2017-02-22 16:21:51 +0800 | [diff] [blame] | 22 | u32 get_lpuart_clk(void); |
Lukasz Majewski | 821df47 | 2019-02-13 22:46:41 +0100 | [diff] [blame] | 23 | #ifdef CONFIG_SYS_I2C_MXC |
| 24 | int enable_i2c_clk(unsigned char enable, unsigned int i2c_num); |
| 25 | #endif |
Alison Wang | 035260a | 2013-05-27 22:55:42 +0000 | [diff] [blame] | 26 | |
| 27 | #define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK) |
| 28 | |
| 29 | #endif /* __ASM_ARCH_CLOCK_H */ |