linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Richard Hendricks" <richard.hendricks@motorola.com>
Cc: "'linuxppc-embedded@lists.linuxppc.org'" 
	<linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Problem with CPM I2C driver
Date: Fri, 12 May 2000 11:29:24 -0500	[thread overview]
Message-ID: <391C3164.E68C4EC4@motorola.com> (raw)
In-Reply-To: 819E3E914E0AD11194DE00805F0D100B0138B857@fbi.infocom.dk


Kim Jørgensen wrote:
>
> Hi.
>
> After solving my hardware problem on custom MPC823E board and I got my LCD
> running, thank you for the help.
> But I have a new problem: I want to use the I2C bus, but the driver doesn't
> seam to work.
>
> I added CPM IIC and IIC/SPI Microcode patch in xconfig. Then I added the
> cpm_iic_init function in drivers/char/mem.c so that is would be called at
> startup.

I assume you are using the microcode patch because you are using
Ethernet?
If your Ethernet is on SCC2 (which it should be), you don't need the
patch unless you are using SPI.

> When I try to read some data from /dev/i2c0 the driver just hang. I have
> added some printk in the iic driver read function, and it seam to hang just
> after enabling the i2c controller.
> Can anyone help me with this?

Are you trying to do any of the CPM Microcontroller commands?  I don't
think you can do the SPI/I2C commands when using the patch.  The uCode
patch itself has been recently updated to address a problem with
high CPM loads, is that the environment you are running in?

> The "driver" in arch/ppc/mbxboot seam to work fine on my board.
>
> Is there any other more complete i2c driver available?
>
> ---
> Kim Jorgensen
>

--
MPC823 Applications Engineering Development
Get help from other MPC823 customers on the
comp.sys.powerpc.tech newsgroup!

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

  reply	other threads:[~2000-05-12 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-12  9:01 Problem with CPM I2C driver Kim Jørgensen
2000-05-12 16:29 ` Richard Hendricks [this message]
2000-05-12 18:31   ` Dan Malek

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=391C3164.E68C4EC4@motorola.com \
    --to=richard.hendricks@motorola.com \
    --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).