]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/include/asm/arch-mx7ulp/clock.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / include / asm / arch-mx7ulp / clock.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
d0f8516d
PF
2/*
3 * Copyright (C) 2016 Freescale Semiconductor, Inc.
d0f8516d
PF
4 */
5
6#ifndef _ASM_ARCH_CLOCK_H
7#define _ASM_ARCH_CLOCK_H
8
9#include <common.h>
10#include <asm/arch/pcc.h>
11#include <asm/arch/scg.h>
12
13/* Mainly for compatible to imx common code. */
14enum mxc_clock {
15 MXC_ARM_CLK = 0,
16 MXC_AHB_CLK,
17 MXC_IPG_CLK,
18 MXC_UART_CLK,
19 MXC_CSPI_CLK,
20 MXC_AXI_CLK,
21 MXC_DDR_CLK,
22 MXC_ESDHC_CLK,
23 MXC_ESDHC2_CLK,
24 MXC_I2C_CLK,
25};
26
27u32 mxc_get_clock(enum mxc_clock clk);
28u32 get_lpuart_clk(void);
d4dcee22
YL
29#ifdef CONFIG_SYS_LPI2C_IMX
30int enable_i2c_clk(unsigned char enable, unsigned i2c_num);
31u32 imx_get_i2cclk(unsigned i2c_num);
32#endif
d0f8516d
PF
33#ifdef CONFIG_MXC_OCOTP
34void enable_ocotp_clk(unsigned char enable);
35#endif
8850c5d5 36#ifdef CONFIG_USB_EHCI_HCD
d0f8516d
PF
37void enable_usboh3_clk(unsigned char enable);
38#endif
39void init_clk_usdhc(u32 index);
40void clock_init(void);
27117b20 41void hab_caam_clock_enable(unsigned char enable);
d0f8516d 42#endif