blob: 535adadd79068cb9563c0d86c979c989e22f273d [file] [log] [blame]
Alison Wang035260a2013-05-27 22:55:42 +00001/*
2 * Copyright 2013 Freescale Semiconductor, Inc.
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Alison Wang035260a2013-05-27 22:55:42 +00005 */
6
7#ifndef __ASM_ARCH_CLOCK_H
8#define __ASM_ARCH_CLOCK_H
9
10#include <common.h>
11
12enum mxc_clock {
13 MXC_ARM_CLK = 0,
14 MXC_BUS_CLK,
15 MXC_IPG_CLK,
16 MXC_UART_CLK,
17 MXC_ESDHC_CLK,
18 MXC_FEC_CLK,
Alison Wang86bef202013-06-17 15:30:38 +080019 MXC_I2C_CLK,
Alison Wang035260a2013-05-27 22:55:42 +000020};
21
22void enable_ocotp_clk(unsigned char enable);
23unsigned int mxc_get_clock(enum mxc_clock clk);
24
25#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
26
27#endif /* __ASM_ARCH_CLOCK_H */