Re: [PATCH 0/2] mpc5200 ac97 gpio reset

2010-06-09 Thread Jon Smirl
s (which is > more what your changelog sounded like). > Mark, is there a way to ask the chip if it is in test mode? We need to be sure that's whats happening and it isn't some other glitch. -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 0/2] mpc5200 ac97 gpio reset

2010-06-09 Thread Jon Smirl
On Wed, Jun 9, 2010 at 2:13 AM, Wolfgang Denk wrote: > Dear Jon Smirl, > > In message you > wrote: >> >> Would making a change in uboot be a better solution? Eric, can you >> verify if changing uboot also fixes the problem? > > To me it seems better if the

Re: [PATCH 0/2] mpc5200 ac97 gpio reset

2010-06-08 Thread Jon Smirl
t; strictly prohibited. If you have received this communication in error, please > immediately notify the sender and destroy the original message. > > Thank you. > > Please consider the environment before printing this email. > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [alsa-devel] [PATCH 2/6] ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

2009-11-11 Thread Jon Smirl
On Wed, Nov 11, 2009 at 4:57 PM, Grant Likely wrote: > On Wed, Nov 11, 2009 at 2:34 PM, Jon Smirl wrote: >> On Wed, Nov 11, 2009 at 2:24 PM, Grant Likely >> wrote: >>> On Wed, Nov 11, 2009 at 11:37 AM, Mark Brown >>> wrote: >>>> On Wed, Nov

Re: [alsa-devel] [PATCH 2/6] ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

2009-11-11 Thread Jon Smirl
On Wed, Nov 11, 2009 at 2:24 PM, Grant Likely wrote: > On Wed, Nov 11, 2009 at 11:37 AM, Mark Brown > wrote: >> On Wed, Nov 11, 2009 at 11:38:06AM -0500, Jon Smirl wrote: >>> > Providing a final valid data point to the driver would possibly even >>> > make thi

Re: [alsa-devel] [PATCH 2/6] ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

2009-11-11 Thread Jon Smirl
On Wed, Nov 11, 2009 at 1:37 PM, Mark Brown wrote: > On Wed, Nov 11, 2009 at 11:38:06AM -0500, Jon Smirl wrote: > >> There are two solutions: >> 1) tell me where the end of the valid data is. That allows me to >> program the hardware to not enqueue the invalid data. &g

Re: [alsa-devel] [PATCH 2/6] ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

2009-11-11 Thread Jon Smirl
On Sat, Nov 7, 2009 at 3:12 PM, Mark Brown wrote: > On Sat, Nov 07, 2009 at 11:51:16AM -0700, Grant Likely wrote: >> On Sat, Nov 7, 2009 at 5:51 AM, Jon Smirl wrote: > >> current period.  My understanding of ALSA is that the application is >> supposed to make sure there

Re: [PATCH 2/6] ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

2009-11-07 Thread Jon Smirl
On Sat, Nov 7, 2009 at 7:51 AM, Jon Smirl wrote: > On Sat, Nov 7, 2009 at 3:34 AM, Grant Likely > wrote: >> Sound drivers PCM DMA is supposed to free-run until told to stop >> by the trigger callback.  The current code tries to track appl_ptr, >> to avoid stale buffer da

Re: [PATCH 2/6] ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

2009-11-07 Thread Jon Smirl
t_buffer(s); > >                bcom_enable(s->bcom_task); >                spin_unlock_irqrestore(&psc_dma->lock, flags); > diff --git a/sound/soc/fsl/mpc5200_dma.h b/sound/soc/fsl/mpc5200_dma.h > index 529f7a0..d9c741b 100644 > --- a/sound/soc/fsl/mpc5200_dma.h > +++ b/sound/soc/fsl/mpc5200_dma.h > @@ -19,8 +19,6 @@ >  */ >  struct psc_dma_stream { >        struct snd_pcm_runtime *runtime; > -       snd_pcm_uframes_t appl_ptr; > - >        int active; >        struct psc_dma *psc_dma; >        struct bcom_task *bcom_task; > > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: lite5200b kernel not booting

2009-09-25 Thread Jon Smirl
uktdetails.html?tx_ttproducts_pi1[backPID]=270&tx_ttproducts_pi1[product]=62&cHash=6fbc8dcdb2 http://www.phytec.com/products/rdk/PowerPC/phyCORE-MPC5200B-tinyRDK.html > > Kind regards and thank you for the help, > Asier > > __________

[PATCH V2] Use clock freqency from the device tree to calculate correct MPC5200 PSC clock.

2009-08-21 Thread Jon Smirl
Use clock freqency from the device tree to calculate correct MPC5200 PSC clock. Previous code had errors or used a constant. This versions computes the right clock based on the xtal and register settings. Adjusted from previous version to rebase onto current Linus tree. Signed-off-by: Jon Smirl

mpc5200, reboots will idle

2009-08-21 Thread Jon Smirl
/0xd4 (unreliable) [c040ffb0] [c0003e54] rest_init+0x5c/0x88 [c040ffc0] [c03b17c0] start_kernel+0x2a0/0x2b4 [c040fff0] [3438] 0x3438 Rebooting in 180 seconds.. -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org htt

[PATCH V2] Use clock freqency from the device tree to calculate correct MPC5200 PSC clock.

2009-08-07 Thread Jon Smirl
Use clock freqency from the device tree to calculate correct MPC5200 PSC clock. Previous code had errors or used a constant. This versions computes the right clock based on the xtal and register settings. Signed-off-by: Jon Smirl --- arch/powerpc/include/asm/mpc52xx.h |2 +- arch

[PATCH] Use clock freqency from the device tree to calculate correct MPC5200 PSC clock.

2009-08-07 Thread Jon Smirl
Use clock freqency from the device tree to calculate correct MPC5200 PSC clock. Previous code had errors or used a constant. This versions computes the right clock based on the xtal and register settings. --- arch/powerpc/include/asm/mpc52xx.h |2 +- arch/powerpc/platforms/52xx/mpc52

Re: PSC clock divider

2009-08-07 Thread Jon Smirl
c be eliminated and this function: mpc5xxx_get_bus_frequency(struct device_node *node) be moved into mpc52cc_common.c? -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

PSC clock divider

2009-08-07 Thread Jon Smirl
I modify mpc52xx_set_psc_clkdiv() to take in a frequency and them move this code into mpc52xx_common.c? That allows the sysclk parameter to be eliminated for SPI. -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: dma_ops->map_page == NULL

2009-07-07 Thread Jon Smirl
labs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/2] ASoC: add locking to mpc5200-psc-ac97 driver

2009-07-02 Thread Jon Smirl
p;psc_dma->psc_regs->sr_csr.status) & >                                MPC52xx_PSC_SR_CMDSEND), 100, 0); >        if (status == 0) { >                pr_err("timeout on ac97 bus (write)\n"); > -               return; > +               goto out; >        } >        /* Write data */ >        out_be32(&psc_dma->psc_regs->ac97_cmd, >                        ((reg & 0x7f) << 24) | (val << 8)); > + > + out: > +       mutex_unlock(&psc_dma->mutex); >  } > >  static void psc_ac97_warm_reset(struct snd_ac97 *ac97) > > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 1/2] ASoC: Fix mpc5200-psc-ac97 to ensure the data ready bit is cleared

2009-07-02 Thread Jon Smirl
nsuring stale data is cleared before starting another transaction. > > Signed-off-by: Grant Likely Acked-by: Jon Smirl > --- > >  sound/soc/fsl/mpc5200_psc_ac97.c |    4 >  1 files changed, 4 insertions(+), 0 deletions(-) > > > diff --git a/sound/soc/fsl/mpc5200_p

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-07-01 Thread Jon Smirl
- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkpLJMEACgkQD27XaX1/VRs/cwCgn7p7ffxr8WGoW7MwALkBMKtD > VtYAoIa5/viinyvFF5cQP3BvH9WP3a5I > =Zrq3 > -END PGP SIGNATURE- > > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Jon Smirl
            return; >> +             goto out; >>       } >>       /* Write data */ >>       out_be32(&psc_dma->psc_regs->ac97_cmd, >>                       ((reg & 0x7f) << 24) | (val << 8)); >> + >> + out: >> +     mutex_unlock(&psc_dma->mutex); >>  } >> >>  static void psc_ac97_warm_reset(struct snd_ac97 *ac97) >> >> ___ >> Linuxppc-dev mailing list >> Linuxppc-dev@lists.ozlabs.org >> https://lists.ozlabs.org/listinfo/linuxppc-dev > > -- > Pengutronix e.K.                           | Wolfram Sang                | > Industrial Linux Solutions                 | http://www.pengutronix.de/  | > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkpJrkcACgkQD27XaX1/VRsY/QCgyx8IMANjokbNnrOQlXINRLeW > lT4AnAy3ES9r3wriGkRN7ivnLA3zyRHb > =RUPr > -END PGP SIGNATURE- > > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-30 Thread Jon Smirl
involved here. I think this is either a separate patch or it needs >> at >> least to be mentioned in the patch description. > > Oops, that was sloppy.  Yes, I'll put this into a separate patch.  Thanks. Now that you have added the mutexes, do you ever need to force clear the v

Re: [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

2009-06-29 Thread Jon Smirl
this mutex? Or was this mutex needed just for the AC97 driver? -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/2] sound/soc: remove BROKEN from Efika and pcm030 fabric drivers

2009-06-28 Thread Jon Smirl
gt; AC97 as BROKEN until PowerPC merge issues are resolved) > > Tested against 2.6.31-rc1. > > Signed-off-by: Grant Likely Acked-by: Jon Smirl > --- > >  sound/soc/fsl/Kconfig |    4 ++-- >  1 files changed, 2 insertions(+), 2 deletions(-) > > > diff --git a/so

Re: [PATCH 1/2] alsa/soc: Fix typo in MPC5200 PSC AC97 driver Kconfig

2009-06-28 Thread Jon Smirl
like the WM9712 > touchscreen driver from getting probed. > > Tested against 2.6.31-rc1. > > Signed-off-by: Grant Likely Acked-by: Jon Smirl > --- > >  sound/soc/fsl/Kconfig |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > > diff --git a/so

[PATCH] Have git ignore generated files from dtc compile

2009-06-21 Thread Jon Smirl
Have git ignore generated files from dtc compile Signed-off-by: Jon Smirl --- arch/powerpc/boot/.gitignore | 10 ++ scripts/dtc/.gitignore |5 + 2 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 scripts/dtc/.gitignore diff --git a/arch/powerpc/boot

[PATCH] Have git ignore generated files from dtc compile

2009-06-21 Thread Jon Smirl
--- arch/powerpc/boot/.gitignore | 10 ++ scripts/dtc/.gitignore |5 + 2 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 scripts/dtc/.gitignore diff --git a/arch/powerpc/boot/.gitignore b/arch/powerpc/boot/.gitignore index d57aa5c..dab1b41 100644 --- a

build failure in PPC mpc5200_psc_ac97

2009-06-12 Thread Jon Smirl
The new driver for AC97 on the mpc5200 has landed in front of Timur's patch implementing spin_event_timeout(). Timur's patch is in powerpc-next which hasn't been merged yet. mpc5200_psc_ac97 will build ok after this merge happens. -- Jon Smirl jon

Re: Missing some interrupts

2009-06-06 Thread Jon Smirl
_ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev > -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [BUILD FAILURE 02/04] Next June 04:PPC64 randconfig [drivers/usb/host/ohci-hcd.o]

2009-06-04 Thread Jon Smirl
225 Proposed patch by Arnd should fix this. It has not been merged. http://lkml.org/lkml/2009/4/22/49 -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: PWM class? (was: Re: MPC52xx simple GPIO support)

2009-06-03 Thread Jon Smirl
ton Vorontsov > email: cbouatmai...@gmail.com > irc://irc.freenode.net/bd2 > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majord...@vger.kernel.org > More majordomo info at  http://vger.kernel.org/majordomo-in

Re: [PATCH V3 4/4] Fabric bindings for STAC9766 on the Efika

2009-05-28 Thread Jon Smirl
On Thu, May 28, 2009 at 10:00 AM, Peter Korsgaard wrote: >>>>>> "Jon" == Jon Smirl writes: > > Hi, > >  Jon> Fabric bindings for STAC9766 AC97 codec on the Efika. >  Jon> Signed-off-by: Jon Smirl >  Jon> --- >  Jon>  sound/soc/fsl/Kc

Re: [Solved/Patch Question] Weird 5200/mtd-ram problem

2009-05-27 Thread Jon Smirl
if (!fd) { return -ENOMEM; } - memcpy(&fd->name, rd->name, checkedlen); + memcpy_fromio(&fd->name, rd->name, checkedlen); fd->name[checkedlen] = 0; crc = crc32(0, fd->name, rd->nsize); > > Thanks, Albrecht.

[PATCH V3] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()

2009-05-26 Thread Jon Smirl
The function signature for spin_event_timeout() has changed in version V9. Adjust the mpc5200 AC97 driver to use the new function. v2 - switch back to udelay() for fixed timeouts. v3 - forgot about driver being market broken, fix typo Signed-off-by: Jon Smirl --- sound/soc/fsl/mpc5200_psc_ac97

[PATCH V2] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()

2009-05-26 Thread Jon Smirl
The function signature for spin_event_timeout() has changed in version V9. Adjust the mpc5200 AC97 driver to use the new function. v2 - switch back to udelay() for fixed timeouts. Signed-off-by: Jon Smirl --- sound/soc/fsl/mpc5200_psc_ac97.c | 30 ++ 1 files

Re: [alsa-devel] [PATCH] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()

2009-05-26 Thread Jon Smirl
On Tue, May 26, 2009 at 8:53 PM, Timur Tabi wrote: > On Tue, May 26, 2009 at 7:44 PM, Jon Smirl wrote: > >> Because Grant didn't want me doing udelay(50) just to delay things in >> order to give the AC97 controller time to initialize. Your function >> lets me

Re: [alsa-devel] [PATCH] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()

2009-05-26 Thread Jon Smirl
On Tue, May 26, 2009 at 8:38 PM, Timur Tabi wrote: > On Tue, May 26, 2009 at 7:25 PM, Jon Smirl wrote: > >> -       spin_event_timeout(0, 10, 0, rc); >> +       spin_event_timeout(0, 10, 0); >>        out_8(®s->op0, MPC52xx_PSC_OP_RES); >> -    

[PATCH] Modify mpc5200 AC97 driver to use V9 of spin_event_timeout()

2009-05-26 Thread Jon Smirl
The function signature for spin_event_timeout() has changed in version V9. Adjust the mpc5200 AC97 driver to use the new function. Signed-off-by: Jon Smirl --- sound/soc/fsl/mpc5200_psc_ac97.c | 30 ++ 1 files changed, 14 insertions(+), 16 deletions(-) diff --git

Re: [PATCH 1/2 v8] powerpc: introduce macro spin_event_timeout()

2009-05-26 Thread Jon Smirl
going to be a source of bugs. > > -- > Timur Tabi > Linux kernel developer at Freescale > ___ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev > -- Jon Smirl jonsm...@gmail.com ___

Re: [PATCH 1/2 v8] powerpc: introduce macro spin_event_timeout()

2009-05-26 Thread Jon Smirl
ult = (in_be32(x) & 0x14), ...); if (rc) timeout_happened; if (result & 0x10) do something here if (result & 0x04) do something else here Then if I don't care about the result (which I think is the common case)... rc = spin_event_timeout(in_be32(x) & 0x14, ..

Re: [alsa-devel] [PATCH V4 2/5] Main rewite of the mpc5200 audio DMA code

2009-05-26 Thread Jon Smirl
On Tue, May 26, 2009 at 12:51 PM, Grant Likely wrote: > On Tue, May 26, 2009 at 5:01 AM, Mark Brown > wrote: >> On Mon, May 25, 2009 at 06:15:09PM -0400, Jon Smirl wrote: >>> Rewrite the mpc5200 audio DMA code to support both I2S and AC97. >>> >>> Signed

Re: [PATCH 1/2 v8] powerpc: introduce macro spin_event_timeout()

2009-05-26 Thread Jon Smirl
On Tue, May 26, 2009 at 12:20 PM, Geoff Thorpe wrote: > Timur Tabi wrote: >> On Mon, May 25, 2009 at 12:46 PM, Jon Smirl wrote: >> >>> I just tried using this. The !rc has the effect of making the error >>> return be zero instead the normal not zero. >>

Re: [PATCH V5 1/5] powerpc: introduce macro spin_event_timeout()

2009-05-26 Thread Jon Smirl
On Tue, May 26, 2009 at 9:03 AM, Mark Brown wrote: > On Tue, May 26, 2009 at 08:34:06AM -0400, Jon Smirl wrote: >> The macro spin_event_timeout() takes a condition and timeout value >> (in microseconds) as parameters.  It spins until either the condition is true >> or the

[PATCH V5 5/5] Fabric bindings for STAC9766 on the Efika

2009-05-26 Thread Jon Smirl
Fabric bindings for STAC9766 AC97 codec on the Efika. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |8 +++ sound/soc/fsl/Makefile |1 sound/soc/fsl/efika-audio-fabric.c | 90 3 files changed, 99 insertions(+), 0

[PATCH V5 4/5] Support for AC97 on Phytec pmc030 base board.

2009-05-26 Thread Jon Smirl
Support for AC97 on Phytec pmc030 base board. A wm9712 AC97 codec is used. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |7 +++ sound/soc/fsl/Makefile |3 + sound/soc/fsl/pcm030-audio-fabric.c | 90 +++ 3 files changed

[PATCH V5 3/5] AC97 driver for mpc5200

2009-05-26 Thread Jon Smirl
ticking. Every once in a while even five pokes won't get the link started and I have to power cycle. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig| 11 + sound/soc/fsl/Makefile |1 sound/soc/fsl/mpc5200_psc_ac97.c | 331 +

[PATCH V5 2/5] Main rewite of the mpc5200 audio DMA code

2009-05-26 Thread Jon Smirl
Rewrite the mpc5200 audio DMA code to support both I2S and AC97. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |1 sound/soc/fsl/mpc5200_dma.c | 442 --- sound/soc/fsl/mpc5200_dma.h | 33 +-- sound/soc/fsl/mpc5200_psc_i2s.c

[PATCH V5 1/5] powerpc: introduce macro spin_event_timeout()

2009-05-26 Thread Jon Smirl
The macro spin_event_timeout() takes a condition and timeout value (in microseconds) as parameters. It spins until either the condition is true or the timeout expires. It returns the result of the condition when the loop was terminated. This primary purpose of this macro is to poll on a hardware

[PATCH V5 0/5] AC97 driver for mpc5200

2009-05-26 Thread Jon Smirl
Version 5. Modified to use spin_event_timeout() as originally written. --- Jon Smirl (5): Fabric bindings for STAC9766 on the Efika Support for AC97 on Phytec pmc030 base board. AC97 driver for mpc5200 Main rewite of the mpc5200 audio DMA code powerpc: introduce

Re: [alsa-devel] [PATCH V4 0/5] AC97 driver for mpc5200

2009-05-26 Thread Jon Smirl
On Mon, May 25, 2009 at 11:44 PM, Timur Tabi wrote: > On Mon, May 25, 2009 at 5:15 PM, Jon Smirl wrote: > >>      The macro spin_event_timeout() takes a condition and timeout value > > My patch is already set to go through the powerpc tree, so there's no > need to re

[PATCH V4 5/5] Fabric bindings for STAC9766 on the Efika

2009-05-25 Thread Jon Smirl
Fabric bindings for STAC9766 AC97 codec on the Efika. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |8 +++ sound/soc/fsl/Makefile |1 sound/soc/fsl/efika-audio-fabric.c | 90 3 files changed, 99 insertions(+), 0

[PATCH V4 4/5] Support for AC97 on Phytec pmc030 base board.

2009-05-25 Thread Jon Smirl
Support for AC97 on Phytec pmc030 base board. A wm9712 AC97 codec is used. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |7 +++ sound/soc/fsl/Makefile |3 + sound/soc/fsl/pcm030-audio-fabric.c | 90 +++ 3 files changed

[PATCH V4 3/5] AC97 driver for mpc5200

2009-05-25 Thread Jon Smirl
ticking. Every once in a while even five pokes won't get the link started and I have to power cycle. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig| 11 + sound/soc/fsl/Makefile |1 sound/soc/fsl/mpc5200_psc_ac97.c | 331 +

[PATCH V4 2/5] Main rewite of the mpc5200 audio DMA code

2009-05-25 Thread Jon Smirl
Rewrite the mpc5200 audio DMA code to support both I2S and AC97. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |1 sound/soc/fsl/mpc5200_dma.c | 442 --- sound/soc/fsl/mpc5200_dma.h | 43 ++-- sound/soc/fsl/mpc5200_psc_i2s.c

[PATCH V4 1/5] The macro spin_event_timeout() takes a condition and timeout value

2009-05-25 Thread Jon Smirl
(in microseconds) as parameters. It spins until either the condition is true or the timeout expires. It returns the result of the condition when the loop was terminated. This primary purpose of this macro is to poll on a hardware register until a status bit changes. The timeout ensures that the

[PATCH V4 0/5] AC97 driver for mpc5200

2009-05-25 Thread Jon Smirl
the time. An oscilliscope is needed to figure out what is going on with failed resets. Both pcm030 and Efika ocasionally fail to reset and they use different codec chips. --- Jon Smirl (5): Fabric bindings for STAC9766 on the Efika Support for AC97 on Phytec pmc030 base board

Re: [PATCH 1/2 v8] powerpc: introduce macro spin_event_timeout()

2009-05-25 Thread Jon Smirl
f (delay)                                                  \ > +                       udelay(delay);                                      \ > +               else                                                        \ > +                       cpu_relax();                                        \ >

Re: [PATCH V3 2/4] AC97 driver for mpc5200

2009-05-25 Thread Jon Smirl
gt; > This locking looks wrong - I'd expect it to also cover the modification > of psc_dma->slots?  Otherwise it's hard to see what it buys you. Grant, why are you spin locking around register access? -- Jon Smirl jonsm...@gmail.com ___

Re: [PATCH V3 2/4] AC97 driver for mpc5200

2009-05-25 Thread Jon Smirl
On Mon, May 25, 2009 at 2:16 AM, Grant Likely wrote: > On Sun, May 24, 2009 at 7:38 PM, Jon Smirl wrote: >> +static unsigned short psc_ac97_read(struct snd_ac97 *ac97, unsigned short >> reg) >> +{ >> +       int timeout; >> +       unsigned int val; >>

Re: [PATCH V3 3/4] Support for AC97 on Phytec pmc030 base board.

2009-05-25 Thread Jon Smirl
On Mon, May 25, 2009 at 2:34 AM, Grant Likely wrote: > On Sun, May 24, 2009 at 7:38 PM, Jon Smirl wrote: > > This is ugly.  I'd really rather have a generic mechanism for creating > a fabric driver based on the OF data.  But failing that, it seems to > me that this platform

[PATCH V3 4/4] Fabric bindings for STAC9766 on the Efika

2009-05-24 Thread Jon Smirl
Fabric bindings for STAC9766 AC97 codec on the Efika. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |8 +++ sound/soc/fsl/Makefile |1 sound/soc/fsl/efika-audio-fabric.c | 95 3 files changed, 104 insertions(+), 0

[PATCH V3 3/4] Support for AC97 on Phytec pmc030 base board.

2009-05-24 Thread Jon Smirl
Support for AC97 on Phytec pmc030 base board. A wm9712 AC97 codec is used. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |7 +++ sound/soc/fsl/Makefile |3 + sound/soc/fsl/pcm030-audio-fabric.c | 95 +++ 3 files changed

[PATCH V3 2/4] AC97 driver for mpc5200

2009-05-24 Thread Jon Smirl
ticking. Every once in a while even five pokes won't get the link started and I have to power cycle. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig| 11 + sound/soc/fsl/Makefile |1 sound/soc/fsl/mpc5200_psc_ac97.c | 392 +

[PATCH V3 1/4] Main rewite of the mpc5200 audio DMA code

2009-05-24 Thread Jon Smirl
Rewrite the mpc5200 audio DMA code to support both I2S and AC97. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |1 sound/soc/fsl/mpc5200_dma.c | 504 ++- sound/soc/fsl/mpc5200_dma.h | 33 +-- sound/soc/fsl/mpc5200_psc_i2s.c

[PATCH V3 0/4] mpc5200 audio rework for AC97

2009-05-24 Thread Jon Smirl
ommit 0bc53a67ac831ec84f730a657dbcadd80a589ef5 on broonie/for-2.6.31 at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git --- Jon Smirl (4): Fabric bindings for STAC9766 on the Efika Support for AC97 on Phytec pmc030 base board. AC97 driver for mpc5200 Main rewite of the mpc5200

Re: [PATCH V2 5/9] Main rewite of the mpc5200 audio DMA code

2009-05-24 Thread Jon Smirl
olfram Sang                | > Industrial Linux Solutions                 | http://www.pengutronix.de/  | > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkoZmA0ACgkQD27XaX1/VRvugwCgsluxfp1rJH2MVFMTH6Yqo8bX > dnIAn1z0QRIFEUJa0XpGFE937siwf8Cy

Re: [alsa-devel] [PATCH V2 1/9] Register the wm9712 DAIs on module load

2009-05-24 Thread Jon Smirl
500 mapped to virtual irq 195 Registered DAI 'AC97' Registered DAI 'SPDIF' mpc5200-psc-ac97 f0002000.ac97: Codec ID is 574d 4c12 soc-audio soc-audio.1: DAI AC97 HiFi not registered soc-audio soc-audio.1: Registered card 'pcm030' ALSA

Re: [alsa-devel] [PATCH V2 1/9] Register the wm9712 DAIs on module load

2009-05-24 Thread Jon Smirl
On Sun, May 24, 2009 at 7:11 AM, Mark Brown wrote: > On Sat, May 23, 2009 at 07:12:57PM -0400, Jon Smirl wrote: >> Register the wm9712 DAIs on module load > >> Signed-off-by: Jon Smirl > > Why do you wish to do this - ASoC does not require or use DAI registration > fo

Re: [alsa-devel] [PATCH V2 0/9] mpc5200 audio rework for AC97

2009-05-24 Thread Jon Smirl
n't have an id_table. My AC97 driver is detecting the codec id and printing it before trying to access the codec driver. I can convert that to a load_module() call when the drivers are ready. The core needs to detect if a specific codec id can't be supported to f

[PATCH V2 4/9] Add a few more mpc5200 PSC defines

2009-05-23 Thread Jon Smirl
Add a few more mpc5200 PSC defines. More bit fields defines for mpc5200 PSC registers. This patch is going in via Grant's tree. Signed-off-by: Jon Smirl --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/mpc52xx_psc.h b/arch/powerpc/includ

Re: [PATCH V2 0/9] mpc5200 audio rework for AC97

2009-05-23 Thread Jon Smirl
On Sat, May 23, 2009 at 7:12 PM, Jon Smirl wrote: > The following series implements audio support for the mpc5200. It adds an > AC97 driver and STAC9766 codec driver. Board support for the Efika and Phytec > pcm030 are also included. Series is based on branch for-2.6.

[PATCH V2 9/9] Support for AC97 on Phytec pmc030 base board.

2009-05-23 Thread Jon Smirl
Support for AC97 on Phytec pmc030 base board. A wm9712 AC97 codec is used. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |7 +++ sound/soc/fsl/Makefile |1 sound/soc/fsl/pcm030-audio-fabric.c | 94 +++ 3 files changed

[PATCH V2 8/9] Fabric bindings for STAC9766 on the Efika

2009-05-23 Thread Jon Smirl
Fabric bindings for STAC9766 AC97 codec on the Efika. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |8 +++ sound/soc/fsl/Makefile |3 + sound/soc/fsl/efika-audio-fabric.c | 94 3 files changed, 105 insertions(+), 0

[PATCH V2 7/9] AC97 driver for mpc5200

2009-05-23 Thread Jon Smirl
AC97 driver for mpc5200 Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig| 11 + sound/soc/fsl/Makefile |1 sound/soc/fsl/mpc5200_psc_ac97.c | 394 ++ sound/soc/fsl/mpc5200_psc_ac97.h | 15 + 4 files changed, 421 insertions

[PATCH V2 6/9] Codec for STAC9766 used on the Efika

2009-05-23 Thread Jon Smirl
AC97 codec for STAC9766 used on the Efika. Datasheet: http://www.idt.com/products/getDoc.cfm?docID=13134007 Signed-off-by: Jon Smirl --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 7f78b65..cb07d9b 100644 --- a/sound

[PATCH V2 5/9] Main rewite of the mpc5200 audio DMA code

2009-05-23 Thread Jon Smirl
Rewrite the mpc5200 audio DMA code to support both I2S and AC97. Make it more robust. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |1 sound/soc/fsl/mpc5200_dma.c | 505 ++- sound/soc/fsl/mpc5200_dma.h | 29 +- sound/soc/fsl

[PATCH V2 3/9] Rename the PSC functions to DMA

2009-05-23 Thread Jon Smirl
Rename the functions in the mpc5200 DMA file from i2s based names to dma ones to reflect the file they are in. Signed-off-by: Jon Smirl --- sound/soc/fsl/mpc5200_dma.c | 194 --- sound/soc/fsl/mpc5200_dma.h | 26 +++-- sound/soc/fsl

[PATCH V2 2/9] Basic split of mpc5200 DMA code out from mpc5200_psc_i2s

2009-05-23 Thread Jon Smirl
Basic split of mpc5200 DMA code out from i2s into a standalone file. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |4 sound/soc/fsl/Makefile |2 sound/soc/fsl/mpc5200_dma.c | 458 + sound/soc/fsl/mpc5200_dma.h

[PATCH V2 1/9] Register the wm9712 DAIs on module load

2009-05-23 Thread Jon Smirl
Register the wm9712 DAIs on module load Signed-off-by: Jon Smirl --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 1fd4e88..49ad987 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c @@ -742,6

[PATCH V2 0/9] mpc5200 audio rework for AC97

2009-05-23 Thread Jon Smirl
ement, etc based on feedback. I2S will get examined in more detail for the next kernel cycle. Our multi-channel prototype I2S hardware is just about working. Once I get the multi-channel hardware I will implement and heavily test a lot more I2S capability. --- Jon Smirl (9): Support for AC

Re: [PATCH] Add a few more mpc5200 PSC defines

2009-05-22 Thread Jon Smirl
On Fri, May 22, 2009 at 11:33 AM, Grant Likely wrote: > On Fri, May 22, 2009 at 9:25 AM, Jon Smirl wrote: >> Add a few more mpc5200 PSC defines. More bit fields defines for mpc5200 PSC >> registers >> >> Signed-off-by: Jon Smirl > > Thanks Jon, > > What

[PATCH] Add a few more mpc5200 PSC defines

2009-05-22 Thread Jon Smirl
Add a few more mpc5200 PSC defines. More bit fields defines for mpc5200 PSC registers Signed-off-by: Jon Smirl --- arch/powerpc/include/asm/mpc52xx_psc.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/mpc52xx_psc.h b/arch/powerpc

Re: [PATCH] mpc52xx_psc_spi: Convert to cs_control callback

2009-05-22 Thread Jon Smirl
*op, id = *psc_nump + 1; } - return mpc52xx_psc_spi_do_probe(&op->dev, (u32)regaddr64, (u32)size64, + return mpc52xx_psc_spi_do_probe(op, (u32)regaddr64, (u32)size64, irq_of_parse_and_map(op->node, 0), id); }

Audio and mpc5200 bestcomm tasks

2009-05-21 Thread Jon Smirl
count to estimate how far into the buffer DMA has progressed. But that's not as accurate as just asking the DMA hardware. I poked around in the SRAM data and couldn't find the address. Is it there or can the Bestcomm tasks be modified to leave it somewhere visible? -- Jon Smirl jon

Re: [PATCH] powerpc/pcm030.dts: add i2c eeprom and delete cruft

2009-05-20 Thread Jon Smirl
gt; -- > Pengutronix e.K.                           | Wolfram Sang                | > Industrial Linux Solutions                 | http://www.pengutronix.de/  | > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > >

Re: mpc5200 fec error

2009-05-20 Thread Jon Smirl
On Wed, May 20, 2009 at 11:28 AM, Eric Millbrandt wrote: > -Original Message- > From: Jon Smirl [mailto:jonsm...@gmail.com] > Sent: Wednesday, May 20, 2009 11:15 > To: Eric Millbrandt > Cc: Wolfram Sang; Grant Likely; linuxppc-dev@ozlabs.org > Subject: Re: mpc5200 fe

Re: [PATCH] powerpc/pcm030.dts: add i2c eeprom and delete cruft

2009-05-20 Thread Jon Smirl
                             &gpt5          0 0 /* timer5           44c   >           x7-11      */ > -                                &gpt6          0 0 /* timer6           60c   >           x8-15      */ > -                                &gpt7          0 0 /* timer7           36a  

Re: mpc5200 fec error

2009-05-20 Thread Jon Smirl
ux Solutions                 | http://www.pengutronix.de/  | > > Wolfram, > > Thanks, but no luck with this patch.  It was already setup correctly by > U-Boot. I don't see where this gets enabled in the u-boot source. Have you added it locally? These are the only two I see: cpu/mpc5xxx/cpu_init.c: *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 13); cpu/mpc5xxx/cpu_init.c: *(vu_long *)(MPC5XXX_XLBARB + 0x40) |= (1 << 15); -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: Using archaic I2C with OF

2009-05-01 Thread Jon Smirl
On Fri, May 1, 2009 at 10:50 AM, Gary Thomas wrote: > Jon Smirl wrote: >> On Fri, May 1, 2009 at 10:39 AM, Jon Smirl wrote: >>> On Fri, May 1, 2009 at 9:04 AM, Gary Thomas wrote: >>>> I'd like to use an existing I2C driver (a touchscreen device) >>

Re: Using archaic I2C with OF

2009-05-01 Thread Jon Smirl
On Fri, May 1, 2009 at 10:39 AM, Jon Smirl wrote: > On Fri, May 1, 2009 at 9:04 AM, Gary Thomas wrote: >> I'd like to use an existing I2C driver (a touchscreen device) >> with my 834x based platform.  How do I arrange to provide >> platform data (i2c_client->dev.pl

Re: Using archaic I2C with OF

2009-05-01 Thread Jon Smirl
er to work in the current model. -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH V1 3/3] Rename exports in mpc5200_dma.c

2009-04-26 Thread Jon Smirl
On Mon, Apr 27, 2009 at 12:08 AM, Grant Likely wrote: > On Sun, Apr 26, 2009 at 1:53 PM, Jon Smirl wrote: >> Rename the public DMA exports into the global name space so that the DMA >> code can be built as a module. >> >> Signed-off-by: Jon Smirl > > Nack.  m

[PATCH V1 2/3] Rename the PSC functions to DMA

2009-04-26 Thread Jon Smirl
Rename the functions in the mpc5200 DMA file from i2s to dma to reflect the file they are in. Signed-off-by: Jon Smirl --- sound/soc/fsl/mpc5200_dma.c | 194 --- sound/soc/fsl/mpc5200_dma.h | 26 +++-- sound/soc/fsl/mpc5200_psc_i2s.c | 160

[PATCH V1 3/3] Rename exports in mpc5200_dma.c

2009-04-26 Thread Jon Smirl
Rename the public DMA exports into the global name space so that the DMA code can be built as a module. Signed-off-by: Jon Smirl --- sound/soc/fsl/mpc5200_dma.c | 18 -- sound/soc/fsl/mpc5200_dma.h | 10 +- sound/soc/fsl/mpc5200_psc_i2s.c | 14

[PATCH V1 1/3] Basic split of mpc5200 DMA code out from mpc5200_psc_i2s

2009-04-26 Thread Jon Smirl
Basic split of mpc5200 DMA code out from i2s into a standalone file. Signed-off-by: Jon Smirl --- sound/soc/fsl/Kconfig |4 sound/soc/fsl/Makefile |2 sound/soc/fsl/mpc5200_dma.c | 457 + sound/soc/fsl/mpc5200_dma.h

[PATCH V1 0/3] Split the DMA core out from mpc5200_psc_i2s.c

2009-04-26 Thread Jon Smirl
Patch series to separate out the mpc5200 core DMA routines from mpc5200_psc_i2s.c into a standalone mpc5200_dma.c. No intention to change how anything works, this is just a code reorg needed for later patches to build on. --- Jon Smirl (3): Rename exports in mpc5200_dma.c Rename the

Re: mpc5200 and dma_ops

2009-04-17 Thread Jon Smirl
On Fri, Apr 17, 2009 at 8:58 PM, Jon Smirl wrote: > Inside the ASoC code there a dma_alloc_coherent() call. This call is > failing because dma_ops is null. > --kernel BUG at /home/jonsmirl/fs/arch/powerpc/include/asm/dma-mapping.h:237! > The device is soc-audio which is a platform_dev

mpc5200 and dma_ops

2009-04-17 Thread Jon Smirl
? -- Jon Smirl jonsm...@gmail.com ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] powerpc/mpc52xx: add Phytec phyCORE-MPC5200B-IO board (pcm032)

2009-03-06 Thread Jon Smirl
On Tue, Mar 3, 2009 at 3:12 AM, Robert Schwebel wrote: > On Sun, Mar 01, 2009 at 09:33:16PM -0700, Grant Likely wrote: >> On Sun, Mar 1, 2009 at 7:19 PM, Jon Smirl wrote: >> > Would it be easier to get Pengutronix to release a new u-boot for >> > the pcm030? I'm

Re: [RFC 1/2] powerpc/5200: add general purpose timer API for the MPC5200

2009-03-06 Thread Jon Smirl
6 in Input mode */ compatible = "gpt-ir"; cell-index = <7>; reg = <0x670 0x10>; interrupts = <0x1 0x10 0x0>; interrupt-parent = <&mpc5200_pic>;

  1   2   3   4   5   6   >