From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ORML003.digis.net (orml003.digis.net [208.187.239.98]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 427BC67B2C for ; Sun, 18 Jun 2006 05:24:20 +1000 (EST) Message-ID: <44944F9B.8060007@digis.net> Date: Sat, 17 Jun 2006 12:53:15 -0600 From: Frank Bennett MIME-Version: 1.0 To: Trueskew Subject: Re: Using bestcomm in an external module (MPC5200B to be exact) References: <4493894e.6d57ffd8.019a.ffff95b9@mx.gmail.com> In-Reply-To: <4493894e.6d57ffd8.019a.ffff95b9@mx.gmail.com> Content-Type: multipart/alternative; boundary="------------000104020001080704060208" Cc: linuxppc-embedded@ozlabs.org Reply-To: bennett78@digis.net List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------000104020001080704060208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Trueskew wrote: > I'm writing a driver for a TI codec attached to the MPC5200B PSC3 > codec lines on a Lite5200b. It's an external module, and I'd like to > use Bestcomm with it. I've already tried a bunch of horrible things > to get it to work. I could say it's close, but by close I mean the > FEC still runs, my stuff doesn't. > > 1. Can the Bestcomm I/F be used by an external module, or is the > module required to be built in if built-in drivers use Bestcomm? > TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really > supposed to be called more than once from what I've read, and the > kernel loads them for ethernet and ATA (no disk in my system if that > matters). > > 2. If it can be used by an external module, how would I do it? I've > tried compiling the source into my module and replicating the > initialization the kernel does in addition to my own stuff. It's not > too bad, though I don't get any interrupts yet. > > The LTIB from Freescale includes AIC23 and AC97 drivers that use > Bestcomm. I built my kernel with them set as modules, and they had > the same unresolved problems that my driver has on insmod, so I'm > pessimistic. If someone could put me out of my misery one way or > another, I'd appreciate it. Might check out the driver posted by Bob Petersen: http://ozlabs.org/pipermail/linuxppc-embedded/2005-September/020210.html using DENX linuxppc_2_4_devel/arch/ppc/5xxx_io/ i2s.c, psc.c and Bestcomm/ Frank > > Thanks. > Sal > > >------------------------------------------------------------------------ > >_______________________________________________ >Linuxppc-embedded mailing list >Linuxppc-embedded@ozlabs.org >https://ozlabs.org/mailman/listinfo/linuxppc-embedded > */Frank Bennett President/* Mathegraphics,LLC 613 Bentley Pl Fort Collins,CO 80526 970-229-9269 (hm) 970-402-9269 (cell) www.mathegraphics.com bennett78@digis.net --------------000104020001080704060208 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Trueskew wrote:
I'm writing a driver for a TI codec attached to the MPC5200B PSC3 codec lines on a Lite5200b.  It's an external module, and I'd like to use Bestcomm with it.  I've already tried a bunch of horrible things to get it to work.  I could say it's close, but by close I mean the FEC still runs, my stuff doesn't. 
 
1. Can the Bestcomm I/F be used by an external module, or is the module required to be built in if built-in drivers use Bestcomm?  TasksInitAPI (no so bad) and TasksLoadImage (yeah, bad) aren't really supposed to be called more than once from what I've read, and the kernel loads them for ethernet and ATA (no disk in my system if that matters). 
 
2. If it can be used by an external module, how would I do it?  I've tried compiling the source into my module and replicating the initialization the kernel does in addition to my own stuff.  It's not too bad, though I don't get any interrupts yet.
 
The LTIB from Freescale includes AIC23 and AC97 drivers that use Bestcomm.  I built my kernel with them set as modules, and they had the same unresolved problems that my driver has on insmod, so I'm pessimistic.  If someone could put me out of my misery one way or another, I'd appreciate it.
Might check out the driver posted by Bob Petersen:
    http://ozlabs.org/pipermail/linuxppc-embedded/2005-September/020210.html
using DENX linuxppc_2_4_devel/arch/ppc/5xxx_io/  i2s.c, psc.c and Bestcomm/

Frank
 
Thanks.
Sal
 

_______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded
sign
Frank Bennett
President

Mathegraphics,LLC
613 Bentley Pl
Fort Collins,CO 80526
970-229-9269 (hm) 970-402-9269 (cell)
www.mathegraphics.com
bennett78@digis.net
--------------000104020001080704060208--