Skip to contentSkip to conversation

MPC5200 I2S driver

DISCUSSION Frank Bennett 3 participants 3 messages Nov 5, 2005 – Nov 7, 2005

lore
Share & tools
lore
#0 lore raw

Hi Hans, Eric:

I would be interested in getting any driver code examples for Bestcomm/PSC6/CODEC for the mpc5200 as well.

I am developing a couple of drivers: one a Data Acquisition driver for SPI based AD7683 SAR ADC
on PSC6/codec and a LCD user interface on PSC3/SPI using the DENX Linux distribution. Is arch/ppc/5xxx_io/i2s.c a good example of a Bestcomm, Codec, non Ethernet example?

Thanks to you guys and Wolfgang for you contributions to this thread discussion.

*/Frank Bennett
President
/*Mathegraphics,LLC
613 Bentley Pl
Fort Collins,CO 80526
www.mathegraphics.com <http://www.mathegraphics.com>
[email protected] <mailto:[email protected]>

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

I am developing a couple of drivers: one a Data Acquisition driver for SPI based AD7683 SAR ADC
on PSC6/codec and a LCD user interface on PSC3/SPI using the DENX Linux distribution. Is arch/ppc/5xxx_io/i2s.c a good example of a Bestcomm, Codec, non Ethernet example?

The arch/ppc/5xxx_io/i2s.c driver is *not* a good example for anything usefuil - it is test code used to demonstrate some problems with (earlier versions of) the BestComm API code. It is not in a working state.

An example for a working driver is in "i2s_ring.c", but note that this driver uses a pretty specialized interface to the application, so you will probably have to adjust this for your needs.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
Be careful what you wish for. You never know who will be listening.
                                      - Terry Pratchett, _Soul Music_
#2 lore raw
In reply to Frank Bennett
Quoted 4 lines

I would be interested in getting any driver code
examples for Bestcomm/PSC6/CODEC for the mpc5200
as well.

There was an earlier discussion on this list. Have a look at:
http://ozlabs.org/pipermail/linuxppc-embedded/2005-September/020210.html

That message has the code we've used to run an I2S DAC on the MPC5200. It's been stable, although we've not done extensive testing. You'll also have to prune out the code that's specific to our hardware, and it supports output only. We have not tried using I2S inputs.

Eric

------------------------------------
Eric Johnson, Electrical Engineer
Advanced Communication Design
7901 12th Avenue South
Bloomington, MN 55425
Ph: 952-854-4000 Fax: 952-854-5774