blob: 3bd73a01f3bf939ce99bdfc9fcbd0e3decfbd0d2 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Alison Wang035260a2013-05-27 22:55:42 +00002/*
3 * Copyright 2013 Freescale Semiconductor, Inc.
Alison Wang035260a2013-05-27 22:55:42 +00004 */
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,
Alison Wang86bef202013-06-17 15:30:38 +080018 MXC_I2C_CLK,
Bhuvanchandra DV860c1802015-06-01 18:37:19 +053019 MXC_DSPI_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);
Peng Fan836a6cc2017-02-22 16:21:51 +080024u32 get_lpuart_clk(void);
Alison Wang035260a2013-05-27 22:55:42 +000025
26#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
27
28#endif /* __ASM_ARCH_CLOCK_H */