Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-28 Thread Heiko Schocher
Hello Huang Changming-R66093, Huang Changming-R66093 wrote: These tow part codes are doing the different thing due to the different reason: 1. Kernel's code: because Sometimes 9th clock pulse isn't generated, that code is to generate the 9th clock pulse. What code are you looking at? Are

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-28 Thread Huang Changming-R66093
Thanks and Best Regards Jerry Huang -Original Message- From: Heiko Schocher [mailto:h...@denx.de] Sent: Friday, October 28, 2011 2:34 PM To: Huang Changming-R66093 Cc: Joakim Tjernlund; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Heiko Schocher
Hello Chang-Ming, chang-ming.hu...@freescale.com wrote: From: Jerry Huang chang-ming.hu...@freescale.com It is sometimes necessary to force the I2C module to become the I2C bus master out of reset and drive SCL(even though SDA may already be driven, which indicates that the bus is busy).

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Joakim Tjernlund
From: chang-ming.hu...@freescale.com From: Jerry Huang chang-ming.hu...@freescale.com It is sometimes necessary to force the I2C module to become the I2C bus master out of reset and drive SCL(even though SDA may already be driven, which indicates that the bus is busy). This can occur when a

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Huang Changming-R66093
Thanks and Best Regards Jerry Huang -Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] Sent: Thursday, October 27, 2011 3:26 PM To: Huang Changming-R66093 Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Huang Changming-R66093
@lists.denx.de Subject: Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset From: chang-ming.hu...@freescale.com From: Jerry Huang chang-ming.hu...@freescale.com It is sometimes necessary to force the I2C module to become the I2C bus master out of reset

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Joakim Tjernlund
@lists.denx.de Subject: Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset From: chang-ming.hu...@freescale.com From: Jerry Huang chang-ming.hu...@freescale.com It is sometimes necessary to force the I2C module to become the I2C bus master out

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Joakim Tjernlund
PM To: Joakim Tjernlund Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset Thanks and Best Regards Jerry Huang -Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Huang Changming-R66093
The above sequence is different than the kernel version, why? I don't know the kernel version, but I write the u-boot code according to the Reference Manual of PowerPC, e.g p1022: 11.5.6 Generation of SCL When SDA Low It is sometimes necessary to force the I2C module to

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Huang Changming-R66093
The above sequence is different than the kernel version, why? I don't know the kernel version, but I write the u-boot code according to the Reference Manual of PowerPC, e.g p1022: 11.5.6 Generation of SCL When SDA Low It is sometimes necessary to force the I2C module to become

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Joakim Tjernlund
Huang Changming-R66093 r66...@freescale.com wrote on 2011/10/27 11:26:04: The above sequence is different than the kernel version, why? I don't know the kernel version, but I write the u-boot code according to the Reference Manual of PowerPC, e.g p1022: 11.5.6 Generation of

Re: [U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-27 Thread Huang Changming-R66093
These tow part codes are doing the different thing due to the different reason: 1. Kernel's code: because Sometimes 9th clock pulse isn't generated, that code is to generate the 9th clock pulse. What code are you looking at? Are you just reading the comment? Look at

[U-Boot] [PATCH 2/2] Powerpc/i2c: Force i2c to become bus master out of reset

2011-10-26 Thread Chang-Ming.Huang
From: Jerry Huang chang-ming.hu...@freescale.com It is sometimes necessary to force the I2C module to become the I2C bus master out of reset and drive SCL(even though SDA may already be driven, which indicates that the bus is busy). This can occur when a system reset does not cause all I2C