diff options
author | Rajeshwari Shinde <rajeshwari.s@samsung.com> | 2012-12-26 20:03:12 (GMT) |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-01-08 01:54:33 (GMT) |
commit | a9d2ae7014d9e66dde6dd4a344308449508e4a22 (patch) | |
tree | e8f2248447d9831045a1de483444a39081bbce27 /drivers/i2c/s3c24x0_i2c.h | |
parent | d055911887583e36e550900506c80fbd73c89a58 (diff) | |
download | u-boot-a9d2ae7014d9e66dde6dd4a344308449508e4a22.tar.xz |
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.h | 8 |
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 */ |