1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright 2013 Freescale Semiconductor, Inc. 4 */ 5 6#ifndef __ASM_ARCH_CLOCK_H 7#define __ASM_ARCH_CLOCK_H 8 9#include <common.h> 10 11enum mxc_clock { 12 MXC_ARM_CLK = 0, 13 MXC_BUS_CLK, 14 MXC_IPG_CLK, 15 MXC_UART_CLK, 16 MXC_ESDHC_CLK, 17 MXC_FEC_CLK, 18 MXC_I2C_CLK, 19 MXC_DSPI_CLK, 20}; 21 22void enable_ocotp_clk(unsigned char enable); 23unsigned int mxc_get_clock(enum mxc_clock clk); 24u32 get_lpuart_clk(void); 25#ifdef CONFIG_SYS_I2C_MXC 26int enable_i2c_clk(unsigned char enable, unsigned int i2c_num); 27#endif 28 29#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK) 30 31#endif /* __ASM_ARCH_CLOCK_H */ 32