aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-nomadik.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-nomadik.c')
-rw-r--r--drivers/i2c/busses/i2c-nomadik.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c
index 594ed5059c4a..e10e5cf3751a 100644
--- a/drivers/i2c/busses/i2c-nomadik.c
+++ b/drivers/i2c/busses/i2c-nomadik.c
@@ -126,9 +126,9 @@ enum i2c_operation {
126/** 126/**
127 * struct i2c_nmk_client - client specific data 127 * struct i2c_nmk_client - client specific data
128 * @slave_adr: 7-bit slave address 128 * @slave_adr: 7-bit slave address
129 * @count: no. bytes to be transfered 129 * @count: no. bytes to be transferred
130 * @buffer: client data buffer 130 * @buffer: client data buffer
131 * @xfer_bytes: bytes transfered till now 131 * @xfer_bytes: bytes transferred till now
132 * @operation: current I2C operation 132 * @operation: current I2C operation
133 */ 133 */
134struct i2c_nmk_client { 134struct i2c_nmk_client {
@@ -330,7 +330,7 @@ static void setup_i2c_controller(struct nmk_i2c_dev *dev)
330 * slsu defines the data setup time after SCL clock 330 * slsu defines the data setup time after SCL clock
331 * stretching in terms of i2c clk cycles. The 331 * stretching in terms of i2c clk cycles. The
332 * needed setup time for the three modes are 250ns, 332 * needed setup time for the three modes are 250ns,
333 * 100ns, 10ns repectively thus leading to the values 333 * 100ns, 10ns respectively thus leading to the values
334 * of 14, 6, 2 for a 48 MHz i2c clk. 334 * of 14, 6, 2 for a 48 MHz i2c clk.
335 */ 335 */
336 writel(dev->cfg.slsu << 16, dev->virtbase + I2C_SCR); 336 writel(dev->cfg.slsu << 16, dev->virtbase + I2C_SCR);
@@ -364,7 +364,7 @@ static void setup_i2c_controller(struct nmk_i2c_dev *dev)
364 /* 364 /*
365 * set the speed mode. Currently we support 365 * set the speed mode. Currently we support
366 * only standard and fast mode of operation 366 * only standard and fast mode of operation
367 * TODO - support for fast mode plus (upto 1Mb/s) 367 * TODO - support for fast mode plus (up to 1Mb/s)
368 * and high speed (up to 3.4 Mb/s) 368 * and high speed (up to 3.4 Mb/s)
369 */ 369 */
370 if (dev->cfg.sm > I2C_FREQ_MODE_FAST) { 370 if (dev->cfg.sm > I2C_FREQ_MODE_FAST) {