summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authormario.six@gdsys.cc <mario.six@gdsys.cc>2016-04-25 08:31:09 +0200
committerHeiko Schocher <hs@denx.de>2016-05-17 08:28:55 +0200
commitdbc82ce31b4e90ed171c10e02d382d36bf201dc4 (patch)
treed3be5aa445e3e59d653d95a5a1ef92010e147dba /arch/powerpc
parentecf591e303ed576817f0638ade56e2fab7d910c8 (diff)
downloadu-boot-imx-dbc82ce31b4e90ed171c10e02d382d36bf201dc4.zip
u-boot-imx-dbc82ce31b4e90ed171c10e02d382d36bf201dc4.tar.gz
u-boot-imx-dbc82ce31b4e90ed171c10e02d382d36bf201dc4.tar.bz2
dm: fsl_i2c: Enable DM for FSL I2C
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/fsl_i2c.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_i2c.h b/arch/powerpc/include/asm/fsl_i2c.h
index e94bdc6..d2586f9 100644
--- a/arch/powerpc/include/asm/fsl_i2c.h
+++ b/arch/powerpc/include/asm/fsl_i2c.h
@@ -68,4 +68,14 @@ typedef struct fsl_i2c_base {
u8 res6[0xE8];
} fsl_i2c_t;
+#ifdef CONFIG_DM_I2C
+struct fsl_i2c_dev {
+ struct fsl_i2c_base __iomem *base; /* register base */
+ u32 i2c_clk;
+ u32 index;
+ u8 slaveadd;
+ uint speed;
+};
+#endif
+
#endif /* _ASM_I2C_H_ */