From: John Watts <contact@jookia.org>
To: Sascha Hauer <sha@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] I2C: i.MX: early: Use a custom delay on i.MX6
Date: Thu, 2 Feb 2023 18:58:21 +1100 [thread overview]
Message-ID: <Y9ttHbfAHz0w9jeq@novena-choice-citizen> (raw)
In-Reply-To: <20230202073527.GK13319@pengutronix.de>
On Thu, Feb 02, 2023 at 08:35:27AM +0100, Sascha Hauer wrote:
> I rounded up to 100 cycles and rephrased this to be a little less i.MX6
> centric:
>
> /*
> * We lack udelay on the 32bit i.MX SoCs, so delay manually: On an
> * i.MX6 with a 66Mhz I2C peripheral clock one cycle of this loop
> * takes 1.30us. Let's be generous and round up to 100 cycles. Other
> * i.MX SoCs do not have a higher peripheral clock, so we should be
> * safe here as well.
> */
>
> In the end it doesn't hurt when it takes a little longer.
Makes sense. Thanks!
> Applied, thanks
>
> Sascha
John.
prev parent reply other threads:[~2023-02-02 8:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-01 9:44 John Watts
2023-02-02 7:35 ` Sascha Hauer
2023-02-02 7:58 ` John Watts [this message]
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=Y9ttHbfAHz0w9jeq@novena-choice-citizen \
--to=contact@jookia.org \
--cc=barebox@lists.infradead.org \
--cc=sha@pengutronix.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