diff options
-rw-r--r-- | arch/arm/mach-ux500/board-mop500.c | 39 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-nomadik.c | 3 |
2 files changed, 5 insertions, 37 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index 1bf179e91eab..f4bbe5d2fa5b 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c | |||
@@ -331,43 +331,12 @@ static struct i2c_board_info __initdata mop500_i2c2_devices[] = { | |||
331 | }, | 331 | }, |
332 | }; | 332 | }; |
333 | 333 | ||
334 | #define U8500_I2C_CONTROLLER(id, _slsu, _tft, _rft, clk, t_out, _sm) \ | ||
335 | static struct nmk_i2c_controller u8500_i2c##id##_data = { \ | ||
336 | /* \ | ||
337 | * slave data setup time, which is \ | ||
338 | * 250 ns,100ns,10ns which is 14,6,2 \ | ||
339 | * respectively for a 48 Mhz \ | ||
340 | * i2c clock \ | ||
341 | */ \ | ||
342 | .slsu = _slsu, \ | ||
343 | /* Tx FIFO threshold */ \ | ||
344 | .tft = _tft, \ | ||
345 | /* Rx FIFO threshold */ \ | ||
346 | .rft = _rft, \ | ||
347 | /* std. mode operation */ \ | ||
348 | .clk_freq = clk, \ | ||
349 | /* Slave response timeout(ms) */\ | ||
350 | .timeout = t_out, \ | ||
351 | .sm = _sm, \ | ||
352 | } | ||
353 | |||
354 | /* | ||
355 | * The board uses 4 i2c controllers, initialize all of | ||
356 | * them with slave data setup time of 250 ns, | ||
357 | * Tx & Rx FIFO threshold values as 8 and standard | ||
358 | * mode of operation | ||
359 | */ | ||
360 | U8500_I2C_CONTROLLER(0, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST); | ||
361 | U8500_I2C_CONTROLLER(1, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST); | ||
362 | U8500_I2C_CONTROLLER(2, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST); | ||
363 | U8500_I2C_CONTROLLER(3, 0xe, 1, 8, 100000, 200, I2C_FREQ_MODE_FAST); | ||
364 | |||
365 | static void __init mop500_i2c_init(struct device *parent) | 334 | static void __init mop500_i2c_init(struct device *parent) |
366 | { | 335 | { |
367 | db8500_add_i2c0(parent, &u8500_i2c0_data); | 336 | db8500_add_i2c0(parent, NULL); |
368 | db8500_add_i2c1(parent, &u8500_i2c1_data); | 337 | db8500_add_i2c1(parent, NULL); |
369 | db8500_add_i2c2(parent, &u8500_i2c2_data); | 338 | db8500_add_i2c2(parent, NULL); |
370 | db8500_add_i2c3(parent, &u8500_i2c3_data); | 339 | db8500_add_i2c3(parent, NULL); |
371 | } | 340 | } |
372 | 341 | ||
373 | static struct gpio_keys_button mop500_gpio_keys[] = { | 342 | static struct gpio_keys_button mop500_gpio_keys[] = { |
diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index 5267ab93d550..a92440dbef07 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c | |||
@@ -965,8 +965,7 @@ static int __devinit nmk_i2c_probe(struct platform_device *pdev) | |||
965 | adap->owner = THIS_MODULE; | 965 | adap->owner = THIS_MODULE; |
966 | adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; | 966 | adap->class = I2C_CLASS_HWMON | I2C_CLASS_SPD; |
967 | adap->algo = &nmk_i2c_algo; | 967 | adap->algo = &nmk_i2c_algo; |
968 | adap->timeout = pdata->timeout ? msecs_to_jiffies(pdata->timeout) : | 968 | adap->timeout = msecs_to_jiffies(pdata->timeout); |
969 | msecs_to_jiffies(20000); | ||
970 | snprintf(adap->name, sizeof(adap->name), | 969 | snprintf(adap->name, sizeof(adap->name), |
971 | "Nomadik I2C%d at %lx", pdev->id, (unsigned long)res->start); | 970 | "Nomadik I2C%d at %lx", pdev->id, (unsigned long)res->start); |
972 | 971 | ||