summaryrefslogtreecommitdiff
path: root/drivers/i2c/s3c24x0_i2c.h
diff options
context:
space:
mode:
authorRajeshwari Shinde <rajeshwari.s@samsung.com>2012-12-26 20:03:12 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-01-08 10:54:33 +0900
commita9d2ae7014d9e66dde6dd4a344308449508e4a22 (patch)
treee8f2248447d9831045a1de483444a39081bbce27 /drivers/i2c/s3c24x0_i2c.h
parentd055911887583e36e550900506c80fbd73c89a58 (diff)
downloadu-boot-imx-a9d2ae7014d9e66dde6dd4a344308449508e4a22.zip
u-boot-imx-a9d2ae7014d9e66dde6dd4a344308449508e4a22.tar.gz
u-boot-imx-a9d2ae7014d9e66dde6dd4a344308449508e4a22.tar.bz2
I2C: Driver changes for FDT support
Functions added to get the I2C bus number and reset I2C bus using FDT node. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/i2c/s3c24x0_i2c.h')
-rw-r--r--drivers/i2c/s3c24x0_i2c.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/i2c/s3c24x0_i2c.h b/drivers/i2c/s3c24x0_i2c.h
index 2dd4b06..1243bf1 100644
--- a/drivers/i2c/s3c24x0_i2c.h
+++ b/drivers/i2c/s3c24x0_i2c.h
@@ -30,4 +30,12 @@ struct s3c24x0_i2c {
u32 iicds;
u32 iiclc;
};
+
+struct s3c24x0_i2c_bus {
+ int node; /* device tree node */
+ int bus_num; /* i2c bus number */
+ struct s3c24x0_i2c *regs;
+ enum periph_id id;
+};
+
#endif /* _S3C24X0_I2C_H */