diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-07-17 20:38:33 +0800 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2018-08-06 14:28:23 +0200 |
commit | 3d7690aec1020aa579eee189ed07d5e6289e3617 (patch) | |
tree | 2176a8a80050fe9839e2ef39e82ef6dc57ff68e8 /include/imx_lpi2c.h | |
parent | 16f513ee78e54d71ffcd92248caea0b1360c0ed7 (diff) | |
download | u-boot-3d7690aec1020aa579eee189ed07d5e6289e3617.tar.gz |
i2c: imx_lpi2c: add uclass api support
Use uclass clk api to get per clk when CONFIG_CLK enabled.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/imx_lpi2c.h')
-rw-r--r-- | include/imx_lpi2c.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/imx_lpi2c.h b/include/imx_lpi2c.h index 3fbb40bdd1..2700e5f876 100644 --- a/include/imx_lpi2c.h +++ b/include/imx_lpi2c.h @@ -8,6 +8,8 @@ #ifndef __IMX_LPI2C_H__ #define __IMX_LPI2C_H__ +#include <clk.h> + struct imx_lpi2c_bus { int index; ulong base; @@ -15,6 +17,7 @@ struct imx_lpi2c_bus { int speed; struct i2c_pads_info *pads_info; struct udevice *bus; + struct clk per_clk; }; struct imx_lpi2c_reg { |