From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] OMAP3 I2C Fix the sampling clock.
Date: Sat, 20 Jun 2009 05:22:46 -0500 [thread overview]
Message-ID: <4A3CB876.9080002@windriver.com> (raw)
In-Reply-To: <7A436F7769CA33409C6B44B358BFFF0C0115F502A6@dlee02.ent.ti.com>
Menon, Nishanth wrote:
>> -----Original Message-----
>> From: Tom Rix [mailto:Tom.Rix at windriver.com]
>> Sent: Thursday, June 18, 2009 11:14 PM
>> To: u-boot at lists.denx.de; Menon, Nishanth; dirk.behme at googlemail.com
>> Cc: Tom Rix
>> Subject: [PATCH 1/3] OMAP3 I2C Fix the sampling clock.
>>
>
> Acked-by: Nishanth Menon<nm@ti.com>
>
> There is one comment below though..
>
>> Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
>> ---
>> drivers/i2c/omap24xx_i2c.c | 34 +++++++++++++++++++-----
>> include/asm-arm/arch-omap3/i2c.h | 54
>> +++++++++++++++++++++++++++++++++-----
>> 2 files changed, 74 insertions(+), 14 deletions(-)
>>
>> diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
>> index 6784603..ecdf1f2 100644
>> --- a/drivers/i2c/omap24xx_i2c.c
>> +++ b/drivers/i2c/omap24xx_i2c.c
>> @@ -31,7 +31,29 @@ static void flush_fifo(void);
>>
>> void i2c_init (int speed, int slaveadd)
>> {
>> - u16 scl;
>> + int psc, scll, sclh;
>> +
>> + /* Only handle standard and fast speeds */
>> + if ((speed != OMAP_I2C_STANDARD) &&
>> + (speed != OMAP_I2C_FAST_MODE)) {
>> + printf("Error : I2C unsupported speed %d\n", speed);
>> + return;
>> + }
>> +
>>
>
> We may want to bring the HSI2C support back in though
>
>
How about I do this in a later patch?
The configs I looked at only used the much slower standard speed.
Tom
> Regards,
> Nishanth Menon
>
next prev parent reply other threads:[~2009-06-20 10:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 20:13 [U-Boot] V3 Zoom hw reset Tom Rix
2009-06-18 20:13 ` [U-Boot] [PATCH 1/3] OMAP3 I2C Fix the sampling clock Tom Rix
2009-06-18 20:13 ` [U-Boot] [PATCH 2/3] I2C Add initial support for TWL4030 Tom Rix
2009-06-18 20:13 ` [U-Boot] [PATCH 3/3] TWL4030 Add power reset button Tom Rix
2009-06-20 9:03 ` Menon, Nishanth
2009-06-20 9:09 ` [U-Boot] [PATCH 2/3] I2C Add initial support for TWL4030 Menon, Nishanth
2009-06-20 9:02 ` [U-Boot] [PATCH 1/3] OMAP3 I2C Fix the sampling clock Menon, Nishanth
2009-06-20 10:22 ` Tom [this message]
2009-06-20 15:16 ` Nishanth Menon
2009-06-20 17:19 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-20 17:47 ` Menon, Nishanth
2009-06-21 3:05 ` Tom
2009-06-23 15:27 ` Tom
2009-06-19 9:21 ` [U-Boot] V3 Zoom hw reset Heiko Schocher
2009-06-20 17:20 ` Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A3CB876.9080002@windriver.com \
--to=tom.rix@windriver.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox