]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 4278/1: configure pxa27x I2C SCL as "input"
authorGuennadi Liakhovetski <gl@dsa-ac.de>
Thu, 22 Mar 2007 12:06:55 +0000 (13:06 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 24 Mar 2007 23:24:39 +0000 (23:24 +0000)
commit5fc6c5d1686949139047aaf9e4d8508736d76dac
tree7ff6df680bf00548cde153dfb795a4dee15635d0
parent197b2f7112e4b76cb5c91c35e9cf170ece529a2d
[ARM] 4278/1: configure pxa27x I2C SCL as "input"

It has been reported by Julian Deng that configuring the pxa27x i2c SCL line as output generates a short negative pulse on it during the call to pxa_gpio_mode(GPIO117_I2CSCL_MD); as it first switches it to output and then configures it for the alternate function. The SCL line is in fact bidirectional and can also be configured as 117 | GPIO_ALT_FN_1_IN, in which case the pulse is not generated. This is exactly what this patch does.

Author: Julian Deng <dengtj@sitek.cn>

Signed-off-by: G. Liakhovetski <gl@dsa-ac.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-pxa/pxa-regs.h