Skip to contentSkip to conversation

problems running I2C and/or SPI on 857 board

DISCUSSION Stephan Linke 2 participants 4 messages Mar 25, 2002 – Mar 26, 2002

lore
Share & tools
lore
#0 lore raw

Hi!

I'm trying to get I2C and/or SPI running on a 857 board. Register settings and BDs look good. But when the start command is issued nearly nothing happens as if there would be no clock.
TxBDs have ready bit set. Both ports initialize the internal BD pointer. SPI is changing the clock line to inactive level (once). But that's all. Couldn't find an errata that fits. Only the stuff with Parameter RAM relocation but I can live with the default location...

Is there anyone who has an idea?

Thanks, Stephan

P.S.: Are the BD offsets counted from IMMR base, DPRam base or ...?

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

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

I'm trying to get I2C and/or SPI running on a 857 board. Register settings and BDs look good. But when the start command is issued nearly nothing happens as if there would be no clock.

I guess your implementation is basedon existing code? Which one? [Hint: we have I2C running on a couple of systems...]

Quoted 1 line

Is there anyone who has an idea?

Start from some code that is known to work?

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The existence of god implies a violation of causality.

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

#2 lore raw

At the moment all my tries are based on the existing drivers in PPCBOOT. Using no microcode patch, and DPRAM allocation.
DPRAM allocation pointed out a bug so I guess it's not that well tested yet :( .
Trying fixed DPRAM offsets and microcode now...

Thanks, Stephan

Quoted 21 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Montag, 25. März 2002 14:11
To: Stephan Linke
Cc: Linuxppc-Embedded
Subject: Re: problems running I2C and/or SPI on 857 board

In message <[email protected]>

Quoted 2 lines · you

I'm trying to get I2C and/or SPI running on a 857 board.

Register settings

Quoted 2 lines

and BDs look good. But when the start command is issued nearly nothing happens as if there would be no clock.

I guess your implementation is basedon existing code? Which one? [Hint: we have I2C running on a couple of systems...]

Quoted 1 line

Is there anyone who has an idea?

Quoted 9 lines

Start from some code that is known to work?

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The existence of god implies a violation of causality.

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

#3 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

At the moment all my tries are based on the existing drivers in PPCBOOT.

Which version of PPCBoot? The official releases (1.1.5) should work just fine; they do so on several tested systems.

If you're using the top of tree on the CVS server (i. e. the version which includes the "Grand Unifying I2C interface patch") you may have to adjust a couple of things; this is not that well tested / working yet.

Quoted 1 line

Using no microcode patch, and DPRAM allocation.

I wonder why you use the CPM code at all. I always found it much easier to use CONFIG_SOFT_I2C ...

Quoted 3 lines

DPRAM allocation pointed out a bug so I guess it's not that well tested yet :( .
Trying fixed DPRAM offsets and microcode now...

Please submit a patch!

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The price of curiosity is a terminal experience.
- Terry Pratchett, _The Dark Side of the Sun_

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