uboot/arch/arm/include/asm/arch-vf610/clock.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0+ */
   2/*
   3 * Copyright 2013 Freescale Semiconductor, Inc.
   4 */
   5
   6#ifndef __ASM_ARCH_CLOCK_H
   7#define __ASM_ARCH_CLOCK_H
   8
   9enum mxc_clock {
  10        MXC_ARM_CLK = 0,
  11        MXC_BUS_CLK,
  12        MXC_IPG_CLK,
  13        MXC_UART_CLK,
  14        MXC_ESDHC_CLK,
  15        MXC_FEC_CLK,
  16        MXC_I2C_CLK,
  17        MXC_DSPI_CLK,
  18};
  19
  20void enable_ocotp_clk(unsigned char enable);
  21unsigned int mxc_get_clock(enum mxc_clock clk);
  22u32 get_lpuart_clk(void);
  23#ifdef CONFIG_SYS_I2C_MXC
  24int enable_i2c_clk(unsigned char enable, unsigned int i2c_num);
  25#endif
  26
  27#define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
  28
  29#endif /* __ASM_ARCH_CLOCK_H */
  30