linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Jani.Sarkijarvi@elektrobit.com
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: TQM5200 I2C Second bus
Date: Tue, 23 Sep 2008 08:53:00 -0600	[thread overview]
Message-ID: <20080923145300.GB13593@secretlab.ca> (raw)
In-Reply-To: <3E32F84CD6CB95498A35B353CA3B930C01C2C6B8@fioues08.ebgroup.elektrobit.com>

On Tue, Sep 23, 2008 at 05:39:05PM +0300, Jani.Sarkijarvi@elektrobit.com wrote:
>  
> It is very possible that, setting are not right. I found from mpc5200 manual this register: (MBAR + 0x0B00, GPS, GPIO Standard registers). Where should be right place to modify those register?

Ideally, your U-Boot port should set the correct value for port config.
If you are unable to modify U-Boot, then you can clone
arch/powerpc/platform/52xx/mpc5200_simple.c for the tqm5200 board and
put the port_config fixup in there.

arch/powerpc/platform/52xx/lite5200.c exists for the exact same reason.
Look at the lite5200_fix_port_config() function.

g.

> 
> BR,
> 
> Jani Särkijärvi
> 
> -----Original Message-----
> From: Juergen Beisert [mailto:jbe@pengutronix.de] 
> Sent: 19 September 2008 16:58
> To: linuxppc-embedded@ozlabs.org
> Cc: Särkijärvi, Jani
> Subject: Re: TQM5200 I2C Second bus
> 
> On Freitag, 19. September 2008, Jani.Sarkijarvi@elektrobit.com wrote:
> > Hi,
> >
> > I'm using TQM5200 (MPC5200) chip with linux-2.6-denx. Problem is to 
> > get second I2c bus to work (/dev/i2c-0) . /dev/i2c-1 seems to be 
> > internal bus and I can read ex. lm75 temperature sensor, also I can 
> > see traffic in oscilloscope (only error is "I2C: No RXAK", but it 
> > seems to be working). My .dts setup is:
> 
> Is your "GPS Port Configuration Register" setting correct?
> 
> jbe
> 
> --
> Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
>  Pengutronix - Linux Solutions for Science and Industry
>     Handelsregister: Amtsgericht Hildesheim, HRA 2686
>          Vertretung Sued/Muenchen, Germany
>    Phone: +49-8766-939 228 |  Fax: +49-5121-206917-9
> 
> 
> ----------------------------------------------------------------
> Please note: This e-mail may contain confidential information
> intended solely for the addressee. If you have received this
> e-mail in error, please do not disclose it to anyone, notify
> the sender promptly, and delete the message from your system.
> Thank you.
> 

> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded

      reply	other threads:[~2008-09-23 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-19 10:25 TQM5200 I2C Second bus Jani.Sarkijarvi
2008-09-19 13:57 ` Juergen Beisert
2008-09-23 14:39   ` Jani.Sarkijarvi
2008-09-23 14:53     ` Grant Likely [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=20080923145300.GB13593@secretlab.ca \
    --to=grant.likely@secretlab.ca \
    --cc=Jani.Sarkijarvi@elektrobit.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).