1 /* SPDX-License-Identifier: GPL-2.0+ */
7 #ifndef __ASM_ARCH_CLOCK_H
8 #define __ASM_ARCH_CLOCK_H
10 #include <linux/types.h>
12 #ifdef CONFIG_SYS_MX6_HCLK
13 #define MXC_HCLK CONFIG_SYS_MX6_HCLK
15 #define MXC_HCLK 24000000
18 #ifdef CONFIG_SYS_MX6_CLK32
19 #define MXC_CLK32 CONFIG_SYS_MX6_CLK32
21 #define MXC_CLK32 32768
61 u32 imx_get_uartclk(void);
62 u32 imx_get_fecclk(void);
63 unsigned int mxc_get_clock(enum mxc_clock clk);
64 void setup_gpmi_io_clk(u32 cfg);
65 void hab_caam_clock_enable(unsigned char enable);
66 void enable_ocotp_clk(unsigned char enable);
67 void enable_usboh3_clk(unsigned char enable);
68 void enable_uart_clk(unsigned char enable);
69 int enable_usdhc_clk(unsigned char enable, unsigned bus_num);
70 int enable_sata_clock(void);
71 void disable_sata_clock(void);
72 int enable_pcie_clock(void);
73 int enable_i2c_clk(unsigned char enable, unsigned i2c_num);
74 int enable_spi_clk(unsigned char enable, unsigned spi_num);
75 void enable_ipu_clock(void);
76 void disable_ipu_clock(void);
77 int enable_fec_anatop_clock(int fec_id, enum enet_freq freq);
78 void enable_enet_clk(unsigned char enable);
79 int enable_lcdif_clock(u32 base_addr, bool enable);
80 void enable_qspi_clk(int qspi_num);
81 void enable_thermal_clk(void);
82 void mxs_set_lcdclk(u32 base_addr, u32 freq);
83 void select_ldb_di_clock_source(enum ldb_di_clock clk);
84 void enable_eim_clk(unsigned char enable);
85 int do_mx6_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
87 #endif /* __ASM_ARCH_CLOCK_H */