1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  *
4  * (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
5  */
6 
7 #ifndef __ASM_ARCH_CLOCK_H
8 #define __ASM_ARCH_CLOCK_H
9 
10 #define MXC_HCLK	CONFIG_MX31_HCLK_FREQ
11 
12 #define MXC_CLK32	CONFIG_MX31_CLK32
13 
14 enum mxc_clock {
15 	MXC_ARM_CLK,
16 	MXC_IPG_CLK,
17 	MXC_IPG_PERCLK,
18 	MXC_CSPI_CLK,
19 	MXC_UART_CLK,
20 	MXC_IPU_CLK,
21 	MXC_ESDHC_CLK,
22 	MXC_I2C_CLK,
23 };
24 
25 unsigned int mxc_get_clock(enum mxc_clock clk);
26 extern u32 imx_get_uartclk(void);
27 extern void mx31_gpio_mux(unsigned long mode);
28 extern void mx31_set_pad(enum iomux_pins pin, u32 config);
29 extern void mx31_set_gpr(enum iomux_gp_func gp, char en);
30 
31 void mx31_uart1_hw_init(void);
32 void mx31_uart2_hw_init(void);
33 void mx31_spi2_hw_init(void);
34 
35 #endif /* __ASM_ARCH_CLOCK_H */
36