summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-02-22 16:21:44 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 17:23:51 +0800
commit3573b22b2ab954a26dbc8f7fe04abe61e6061032 (patch)
treebda7ab60333add52f1e7e4f3eafb29ba8eebe8d6 /arch/arm/include/asm
parentcd20f2afe2da42a98a4071dedb86590f0d53bd21 (diff)
downloadu-boot-imx-3573b22b2ab954a26dbc8f7fe04abe61e6061032.zip
u-boot-imx-3573b22b2ab954a26dbc8f7fe04abe61e6061032.tar.gz
u-boot-imx-3573b22b2ab954a26dbc8f7fe04abe61e6061032.tar.bz2
imx: mx7ulp: Implement the clock functions for i2c driver
Implement the i2c clock enable and get function for mx7ulp. These functions are required by imx_lpi2c driver. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/arch-mx7ulp/clock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx7ulp/clock.h b/arch/arm/include/asm/arch-mx7ulp/clock.h
index f21052e..ebf32c6 100644
--- a/arch/arm/include/asm/arch-mx7ulp/clock.h
+++ b/arch/arm/include/asm/arch-mx7ulp/clock.h
@@ -27,6 +27,10 @@ enum mxc_clock {
u32 mxc_get_clock(enum mxc_clock clk);
u32 get_lpuart_clk(void);
+#ifdef CONFIG_SYS_LPI2C_IMX
+int enable_i2c_clk(unsigned char enable, unsigned i2c_num);
+u32 imx_get_i2cclk(unsigned i2c_num);
+#endif
#ifdef CONFIG_MXC_OCOTP
void enable_ocotp_clk(unsigned char enable);
#endif