From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Mon, 3 Feb 2014 12:26:00 -0800 Subject: [U-Boot] [PATCH v4 3/9] kmp204x: I2C deblocking support In-Reply-To: <1391413540-13244-1-git-send-email-valentin.longchamp@keymile.com> References: <52EBE067.5000001@freescale.com> <1391413540-13244-1-git-send-email-valentin.longchamp@keymile.com> Message-ID: <52EFFB58.80706@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/02/2014 11:45 PM, Valentin Longchamp wrote: > From: Rainer Boschung > > This patch adds support for using some GPIOs that are connected to the > I2C bus to force the bus lines state and perform some bus deblocking > sequences. > > The KM common deblocking algorithm from board/keymile/common/common.c is > used. The GPIO lines used for deblocking the I2C bus are some external > GPIOs provided by the QRIO CPLD: > - SCL = GPIOA_20 > - SDA = GPIOA_21 > > The QRIO GPIOs act in an open-drain-like manner, for 0 the line is > driven low and for 1 the GPIO is set as input and the line gets > pulled-up. > > Signed-off-by: Rainer Boschung > Signed-off-by: Valentin Longchamp > > --- > > Changes in v4: > - fix usage of the #define names that got wrong in the merge process > > Changes in v3: > - rewrite the commit message and and the comments for more clarity > - fix the GPIO numbers that where not correct > > Changes in v2: None > Applied to u-boot-mpc85xx master branch. York