aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLudovic Desroches <ludovic.desroches@atmel.com>2012-09-12 02:42:13 -0400
committerWolfram Sang <w.sang@pengutronix.de>2012-09-12 08:49:14 -0400
commit94e734655fbe294c50d304547cae033e87ec229e (patch)
tree7a71f929c75bd2990f146ed67de183cf14dd5dce /arch/arm
parent774c8018d2566207c92f47b6421dad7d88bbfd49 (diff)
ARM: at91: do not configure at91sam9g10 twi pio as open-drain
As indicated in the datasheet, TWD and TWCK must not be programmed as open-drain. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Acked-by: Nikolaus Voss <n.voss@weinmann.de> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-at91/at91sam9261_devices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c
index 29188ef7422b..50d317940f5a 100644
--- a/arch/arm/mach-at91/at91sam9261_devices.c
+++ b/arch/arm/mach-at91/at91sam9261_devices.c
@@ -327,16 +327,16 @@ void __init at91_add_device_i2c(struct i2c_board_info *devices, int nr_devices)
327 /* IP version is not the same on 9261 and g10 */ 327 /* IP version is not the same on 9261 and g10 */
328 if (cpu_is_at91sam9g10()) { 328 if (cpu_is_at91sam9g10()) {
329 at91sam9261_twi_device.name = "i2c-at91sam9g10"; 329 at91sam9261_twi_device.name = "i2c-at91sam9g10";
330 /* I2C PIO must not be configured as open-drain on this chip */
330 } else { 331 } else {
331 at91sam9261_twi_device.name = "i2c-at91sam9261"; 332 at91sam9261_twi_device.name = "i2c-at91sam9261";
333 at91_set_multi_drive(AT91_PIN_PA7, 1);
334 at91_set_multi_drive(AT91_PIN_PA8, 1);
332 } 335 }
333 336
334 /* pins used for TWI interface */ 337 /* pins used for TWI interface */
335 at91_set_A_periph(AT91_PIN_PA7, 0); /* TWD */ 338 at91_set_A_periph(AT91_PIN_PA7, 0); /* TWD */
336 at91_set_multi_drive(AT91_PIN_PA7, 1);
337
338 at91_set_A_periph(AT91_PIN_PA8, 0); /* TWCK */ 339 at91_set_A_periph(AT91_PIN_PA8, 0); /* TWCK */
339 at91_set_multi_drive(AT91_PIN_PA8, 1);
340 340
341 i2c_register_board_info(0, devices, nr_devices); 341 i2c_register_board_info(0, devices, nr_devices);
342 platform_device_register(&at91sam9261_twi_device); 342 platform_device_register(&at91sam9261_twi_device);