[PATCH 0/2] mpc5200 ac97 gpio reset
Jon Smirl
jonsmirl at gmail.com
Wed Jun 9 10:24:05 EST 2010
On Tue, Jun 8, 2010 at 12:46 PM, Eric Millbrandt
<emillbrandt at dekaresearch.com> wrote:
> These patches reimplement the reset fuction in the ac97 to use gpio pins
> instead of using the mpc5200 ac97 reset functionality in the psc. This
> avoids a problem in which attached ac97 devices go into "test" mode appear
> unresponsive.
I'm aware of this problem but I was unable to solve it when I first
wrote the driver. I didn't have access to a scope so I wasn't able to
figure out what was causing the lock up. I worked around it by
looping in reset until the chip did actually reset, but Mark wouldn't
let me submit that code.
A while ago Maximilian Mueth <maximilian.mueth at mp-ndt.de> sent me a
note saying another solution was to configure the PSC into AC97 mode
in uboot. His impression was that uboot was setting PSC into its
default mode. Then Linux booted and set the PSC into AC97 mode. The
transition from default mode into AC97 mode caused glitches on the
AC97 reset pins and triggered test mode.
Would making a change in uboot be a better solution? Eric, can you
verify if changing uboot also fixes the problem?
I'm glad were finally getting to the root cause of the problem.
>
> These patches were tested on a pcm030 baseboard and on custom hardware with
> a wm9715 audio codec/touchscreen controller.
>
> Eric Millbrandt
>
> ---
>
> Eric Millbrandt (2):
> powerpc/5200: Export port-config
> sound/soc: mpc5200_psc_ac97: Use gpio pins for cold reset.
>
> arch/powerpc/boot/dts/lite5200.dts | 3 +
> arch/powerpc/boot/dts/lite5200b.dts | 3 +
> arch/powerpc/boot/dts/pcm030.dts | 3 +
> arch/powerpc/boot/dts/pcm032.dts | 3 +
> arch/powerpc/include/asm/mpc52xx.h | 2 +
> arch/powerpc/platforms/52xx/mpc52xx_common.c | 61 +++++++++++++++++++
> sound/soc/fsl/mpc5200_dma.h | 5 ++
> sound/soc/fsl/mpc5200_psc_ac97.c | 83 ++++++++++++++++++++++++-
> 8 files changed, 159 insertions(+), 4 deletions(-)
>
> -DISCLAIMER: an automatically appended disclaimer may follow. By posting-
> -to a public e-mail mailing list I hereby grant permission to distribute-
> -and copy this message.-
>
>
> This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is 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
jonsmirl at gmail.com
More information about the Linuxppc-dev
mailing list