xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-vf610/clock.h (revision 24e8bee508a341d1de4c708f8d0b9950ee95fab6)
1*24e8bee5SAlison Wang /*
2*24e8bee5SAlison Wang  * Copyright 2013 Freescale Semiconductor, Inc.
3*24e8bee5SAlison Wang  *
4*24e8bee5SAlison Wang  * This program is free software; you can redistribute it and/or
5*24e8bee5SAlison Wang  * modify it under the terms of the GNU General Public License as
6*24e8bee5SAlison Wang  * published by the Free Software Foundation; either version 2 of
7*24e8bee5SAlison Wang  * the License, or (at your option) any later version.
8*24e8bee5SAlison Wang  *
9*24e8bee5SAlison Wang  * This program is distributed in the hope that it will be useful,
10*24e8bee5SAlison Wang  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11*24e8bee5SAlison Wang  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*24e8bee5SAlison Wang  * GNU General Public License for more details.
13*24e8bee5SAlison Wang  *
14*24e8bee5SAlison Wang  * You should have received a copy of the GNU General Public License
15*24e8bee5SAlison Wang  * along with this program; if not, write to the Free Software
16*24e8bee5SAlison Wang  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17*24e8bee5SAlison Wang  * MA 02111-1307 USA
18*24e8bee5SAlison Wang  */
19*24e8bee5SAlison Wang 
20*24e8bee5SAlison Wang #ifndef __ASM_ARCH_CLOCK_H
21*24e8bee5SAlison Wang #define __ASM_ARCH_CLOCK_H
22*24e8bee5SAlison Wang 
23*24e8bee5SAlison Wang #include <common.h>
24*24e8bee5SAlison Wang 
25*24e8bee5SAlison Wang enum mxc_clock {
26*24e8bee5SAlison Wang 	MXC_ARM_CLK = 0,
27*24e8bee5SAlison Wang 	MXC_BUS_CLK,
28*24e8bee5SAlison Wang 	MXC_IPG_CLK,
29*24e8bee5SAlison Wang 	MXC_UART_CLK,
30*24e8bee5SAlison Wang 	MXC_ESDHC_CLK,
31*24e8bee5SAlison Wang 	MXC_FEC_CLK,
32*24e8bee5SAlison Wang };
33*24e8bee5SAlison Wang 
34*24e8bee5SAlison Wang void enable_ocotp_clk(unsigned char enable);
35*24e8bee5SAlison Wang unsigned int mxc_get_clock(enum mxc_clock clk);
36*24e8bee5SAlison Wang 
37*24e8bee5SAlison Wang #define imx_get_fecclk() mxc_get_clock(MXC_FEC_CLK)
38*24e8bee5SAlison Wang 
39*24e8bee5SAlison Wang #endif /* __ASM_ARCH_CLOCK_H */
40