2013-05-27 22:55:42 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2013 Freescale Semiconductor, Inc.
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2013-05-27 22:55:42 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_CLOCK_H
|
|
|
|
#define __ASM_ARCH_CLOCK_H
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
|
|
|
|
enum mxc_clock {
|
|
|
|
MXC_ARM_CLK = 0,
|
|
|
|
MXC_BUS_CLK,
|
|
|
|
MXC_IPG_CLK,
|
|
|
|
MXC_UART_CLK,
|
|
|
|
MXC_ESDHC_CLK,
|
|
|
|
MXC_FEC_CLK,
|
2013-06-17 07:30:38 +00:00
|
|
|
MXC_I2C_CLK,
|
2015-06-01 13:07:19 +00:00
|
|
|
MXC_DSPI_CLK,
|
2013-05-27 22:55:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void enable_ocotp_clk(unsigned char enable);
|
|
|
|
unsigned int mxc_get_clock(enum mxc_clock clk);
|
2017-02-22 08:21:51 +00:00
|
|
|
u32 get_lpuart_clk(void);
|
2013-05-27 22:55:42 +00:00
|
|
|
|
|
|
|
#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
|
|
|
|
|
|
|
|
#endif /* __ASM_ARCH_CLOCK_H */
|