All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/1] Fix I2C for m547x/548x and m5445x	processors.
Date: Mon, 07 Jul 2008 18:17:45 +0200	[thread overview]
Message-ID: <1215447465.12657.15.camel@localhost> (raw)
In-Reply-To: <20080707145937.B419C24304@gemini.denx.de>

On lun, 2008-07-07 at 16:59 +0200, Wolfgang Denk wrote:
> In message <1215439715-28742-2-git-send-email-luigi.mantellini@idf-hit.com> you wrote:
....
> > +
> 
> What a nightmare of data and code. So many magic numbers, so much
> potential for errors. And for what?  Just for I2C support in U-Boot?
> 

From your PoV  you are right. 

> Are you really sure you don't simply want to use the bit-banging
> driver?
> 

I just extended the fsl_i2c.c driver that already uses a precomputed
table to setup the fsl i2c. I haven't invented these values but just
copied from the 547x and 5445x manuals. Furthermore, the h/w i2c is more
accurate that the simple bitbanging.

my 2cents.

luigi

> Best regards,
> 
> Wolfgang Denk

-- 
     ______       Luigi Mantellini
   .'______'.     R&D - Software
  (.'      '.)    Industrie Dial Face S.p.A.
  ( :=----=: )    Via Canzo, 4
  ('.______.')    20068 Peschiera Borromeo (MI), Italy
   '.______.'     Tel.: +39 02 5167 2813
                  Fax:  +39 02 5167 2459
Ind.  Dial Face   Email: luigi.mantellini at idf-hit.com
www.idf-hit.com   GPG fingerprint: 3DD1 7B71 FBDF 6376 1B4A
                                   B003 175F E979 907E 1650

  reply	other threads:[~2008-07-07 16:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-07 14:08 [U-Boot-Users] [COLDFIRE] Luigi 'Comio' Mantellini
2008-07-07 14:08 ` [U-Boot-Users] [PATCH 1/1] Fix I2C for m547x/548x and m5445x processors Luigi 'Comio' Mantellini
2008-07-07 14:59   ` Wolfgang Denk
2008-07-07 16:17     ` Luigi 'Comio' Mantellini [this message]
2008-07-07 18:02       ` Wolfgang Denk
2008-07-07 19:24         ` Luigi 'Comio' Mantellini
2008-07-09 13:22         ` Timur Tabi
  -- strict thread matches above, loose matches on Subject: below --
2008-07-07 14:11 [U-Boot-Users] [COLDFIRE] I2C patch 547x/548x cpus Luigi 'Comio' Mantellini
2008-07-07 14:11 ` [U-Boot-Users] [PATCH 1/1] Fix I2C for m547x/548x and m5445x processors Luigi 'Comio' Mantellini
2008-07-07 14:17 ` Luigi 'Comio' Mantellini
2008-07-09 13:25   ` Timur Tabi
2008-07-09 13:40     ` Luigi 'Comio' Mantellini

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=1215447465.12657.15.camel@localhost \
    --to=luigi.mantellini@idf-hit.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.