Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm: at91: G45 TWI: remove open drain setting for twi function gpios

The G45 datasheets explicitly states that setting the open drain property
on peripheral function gpios is not allowed. (How about other A91 chips?)

Signed-off-by: Nikolaus Voss <n.voss@weinmann.de>
Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>

authored by

Nikolaus Voss and committed by
Wolfram Sang
774c8018 fac368a0

-6
-6
arch/arm/mach-at91/at91sam9g45_devices.c
··· 686 686 /* pins used for TWI interface */ 687 687 if (i2c_id == 0) { 688 688 at91_set_A_periph(AT91_PIN_PA20, 0); /* TWD */ 689 - at91_set_multi_drive(AT91_PIN_PA20, 1); 690 - 691 689 at91_set_A_periph(AT91_PIN_PA21, 0); /* TWCK */ 692 - at91_set_multi_drive(AT91_PIN_PA21, 1); 693 690 694 691 platform_device_register(&at91sam9g45_twi0_device); 695 692 } else { 696 693 at91_set_A_periph(AT91_PIN_PB10, 0); /* TWD */ 697 - at91_set_multi_drive(AT91_PIN_PB10, 1); 698 - 699 694 at91_set_A_periph(AT91_PIN_PB11, 0); /* TWCK */ 700 - at91_set_multi_drive(AT91_PIN_PB11, 1); 701 695 702 696 platform_device_register(&at91sam9g45_twi1_device); 703 697 }