mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
committed by
Anatolij Gustschin
parent
16f513ee78
commit
3d7690aec1
@@ -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 {
|
||||
|
Reference in New Issue
Block a user