linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Mark Powell" <medp@primagraphics.co.uk>
To: "LinuxPPC-Embedded" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: I2C having issues
Date: Thu, 24 Apr 2003 11:38:16 +0100	[thread overview]
Message-ID: <024101c30a4d$9d609d20$3000a8c0@primag> (raw)
In-Reply-To: CF1EBE566046A64291A92D640A2368097AD6C2@postal.viasat.com


----- Original Message -----
From: "Pagnotta, Chris" <chris.pagnotta@viasat.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Sent: Tuesday, April 22, 2003 8:48 PM
Subject: I2C having issues

>
> I tried a couple of things to to get the i2c device up and working and I
> am stil having some problems. The I2C registers are mappped to internal
> memory at address 0xEF60500. I cannot write to this address and read back
> the same values. Here is the output from just the ep405 bootloader.
>

Chris,
there was a bug in 2.4.17 which we are using, where a typo in #if caused the
I2C to be in power-save mode. This gave the symptoms of the I2C module not
responding at all.
This is the diff:

Index: ppc4xx_setup.c
===================================================================
RCS file:
/P2/Hawkeye557/CVS_Repository/Hawkeye557/Linux-405GP/Talon-MVL/linux-2.4.17_
mvl21-talonbsp/arch/ppc/kernel/ppc4xx_setup.c,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.3
diff -c -r1.1.1.2 -r1.1.1.3
*** ppc4xx_setup.c 3 Jan 2003 17:42:34 -0000 1.1.1.2
--- ppc4xx_setup.c 4 Apr 2003 14:23:01 -0000 1.1.1.3
***************
*** 104,111 ****
   value |= CPM_GPIO0;
  #endif

! #if !defined(CONFIG_PPC405_I2C_ADAP)
!  value |= CPM_IIC0;
   value |= CPM_IIC1;
  #endif

--- 104,111 ----
   value |= CPM_GPIO0;
  #endif

! #if !defined(CONFIG_I2C_PPC405_ADAP)
!    value |= CPM_IIC0;
   value |= CPM_IIC1;
  #endif



--
Mark Powell, Senior Software Engineer, Primagraphics Limited
New Cambridge House, Litlington, nr.Royston, Herts, SG8 0SS, UK
Tel. +44 1763 852222, Fax. 853324, http://www.primagraphics.co.uk


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2003-04-24 10:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-22 19:48 I2C having issues Pagnotta, Chris
2003-04-24 10:38 ` Mark Powell [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='024101c30a4d$9d609d20$3000a8c0@primag' \
    --to=medp@primagraphics.co.uk \
    --cc=linuxppc-embedded@lists.linuxppc.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).