diff options
author | Nikolaus Voss <n.voss@weinmann.de> | 2011-11-08 06:11:03 -0500 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-09-12 08:49:13 -0400 |
commit | 774c8018d2566207c92f47b6421dad7d88bbfd49 (patch) | |
tree | be022382705834ed86595fc90045863a9cc82118 /arch | |
parent | fac368a040484293006bb488e67972aafcf88ec7 (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-at91/at91sam9g45_devices.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45_devices.c b/arch/arm/mach-at91/at91sam9g45_devices.c index ac1b0f8c3b31..0fcd8718770f 100644 --- a/arch/arm/mach-at91/at91sam9g45_devices.c +++ b/arch/arm/mach-at91/at91sam9g45_devices.c | |||
@@ -686,18 +686,12 @@ void __init at91_add_device_i2c(short i2c_id, struct i2c_board_info *devices, in | |||
686 | /* pins used for TWI interface */ | 686 | /* pins used for TWI interface */ |
687 | if (i2c_id == 0) { | 687 | if (i2c_id == 0) { |
688 | at91_set_A_periph(AT91_PIN_PA20, 0); /* TWD */ | 688 | at91_set_A_periph(AT91_PIN_PA20, 0); /* TWD */ |
689 | at91_set_multi_drive(AT91_PIN_PA20, 1); | ||
690 | |||
691 | at91_set_A_periph(AT91_PIN_PA21, 0); /* TWCK */ | 689 | at91_set_A_periph(AT91_PIN_PA21, 0); /* TWCK */ |
692 | at91_set_multi_drive(AT91_PIN_PA21, 1); | ||
693 | 690 | ||
694 | platform_device_register(&at91sam9g45_twi0_device); | 691 | platform_device_register(&at91sam9g45_twi0_device); |
695 | } else { | 692 | } else { |
696 | at91_set_A_periph(AT91_PIN_PB10, 0); /* TWD */ | 693 | at91_set_A_periph(AT91_PIN_PB10, 0); /* TWD */ |
697 | at91_set_multi_drive(AT91_PIN_PB10, 1); | ||
698 | |||
699 | at91_set_A_periph(AT91_PIN_PB11, 0); /* TWCK */ | 694 | at91_set_A_periph(AT91_PIN_PB11, 0); /* TWCK */ |
700 | at91_set_multi_drive(AT91_PIN_PB11, 1); | ||
701 | 695 | ||
702 | platform_device_register(&at91sam9g45_twi1_device); | 696 | platform_device_register(&at91sam9g45_twi1_device); |
703 | } | 697 | } |