blob: c60065444cc10648f358ef968ea8b057792975b1 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Eddy Petrișor5178dc12016-06-05 03:43:00 +03002/*
3 * (C) Copyright 2015-2016, Freescale Semiconductor, Inc.
Eddy Petrișor5178dc12016-06-05 03:43:00 +03004 */
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_PERIPHERALS_CLK,
15 MXC_UART_CLK,
16 MXC_USDHC_CLK,
17 MXC_FEC_CLK,
18 MXC_I2C_CLK,
19};
20enum pll_type {
21 ARM_PLL = 0,
22 PERIPH_PLL,
23 ENET_PLL,
24 DDR_PLL,
25 VIDEO_PLL,
26};
27
28unsigned int mxc_get_clock(enum mxc_clock clk);
29void clock_init(void);
30
31#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
32
33#endif /* __ASM_ARCH_CLOCK_H */