xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-vf610/clock.h (revision 1221b3d74a0d92f3fcb5ff3e8b6f721f562b8305)
124e8bee5SAlison Wang /*
224e8bee5SAlison Wang  * Copyright 2013 Freescale Semiconductor, Inc.
324e8bee5SAlison Wang  *
424e8bee5SAlison Wang  * This program is free software; you can redistribute it and/or
524e8bee5SAlison Wang  * modify it under the terms of the GNU General Public License as
624e8bee5SAlison Wang  * published by the Free Software Foundation; either version 2 of
724e8bee5SAlison Wang  * the License, or (at your option) any later version.
824e8bee5SAlison Wang  *
924e8bee5SAlison Wang  * This program is distributed in the hope that it will be useful,
1024e8bee5SAlison Wang  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1124e8bee5SAlison Wang  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1224e8bee5SAlison Wang  * GNU General Public License for more details.
1324e8bee5SAlison Wang  *
1424e8bee5SAlison Wang  * You should have received a copy of the GNU General Public License
1524e8bee5SAlison Wang  * along with this program; if not, write to the Free Software
1624e8bee5SAlison Wang  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
1724e8bee5SAlison Wang  * MA 02111-1307 USA
1824e8bee5SAlison Wang  */
1924e8bee5SAlison Wang 
2024e8bee5SAlison Wang #ifndef __ASM_ARCH_CLOCK_H
2124e8bee5SAlison Wang #define __ASM_ARCH_CLOCK_H
2224e8bee5SAlison Wang 
2324e8bee5SAlison Wang #include <common.h>
2424e8bee5SAlison Wang 
2524e8bee5SAlison Wang enum mxc_clock {
2624e8bee5SAlison Wang 	MXC_ARM_CLK = 0,
2724e8bee5SAlison Wang 	MXC_BUS_CLK,
2824e8bee5SAlison Wang 	MXC_IPG_CLK,
2924e8bee5SAlison Wang 	MXC_UART_CLK,
3024e8bee5SAlison Wang 	MXC_ESDHC_CLK,
3124e8bee5SAlison Wang 	MXC_FEC_CLK,
32*1221b3d7SAlison Wang 	MXC_I2C_CLK,
3324e8bee5SAlison Wang };
3424e8bee5SAlison Wang 
3524e8bee5SAlison Wang void enable_ocotp_clk(unsigned char enable);
3624e8bee5SAlison Wang unsigned int mxc_get_clock(enum mxc_clock clk);
3724e8bee5SAlison Wang 
3824e8bee5SAlison Wang #define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
3924e8bee5SAlison Wang 
4024e8bee5SAlison Wang #endif /* __ASM_ARCH_CLOCK_H */
41