[alsa-devel] [PATCH] pxa2xx-lib: support building for several pxa's
ymiao3 at marvell.com
Thu Jul 31 03:07:02 CEST 2008
> -----Original Message-----
> From: Russ Dill [mailto:russ.dill at gmail.com]
> Sent: Thursday, July 31, 2008 7:29 AM
> To: Dmitry
> Cc: alsa-devel at alsa-project.org; broonie at opensource.wolfsonmicro.com; Eric
> Subject: Re: [PATCH] pxa2xx-lib: support building for several pxa's
> On Wed, Jul 30, 2008 at 3:41 PM, Dmitry <dbaryshkov at gmail.com> wrote:
> > Hi,
> > 2008/7/30 Russ Dill <russ.dill at gmail.com>:
> >> Here's a version of the third patch in the series without all the
> >> #ifdef's. Just a quick question for Dmitry, why all the if (!
> >> cpu_is_pxa3xx())'s around the pxa_gpio_mode's? Also, there was a build
> >> error when just building the sound/arm pxa2xx-ac97.
> > Good!
> > AFAIR pxa_gpio_mode isn't valid for the the pxa3xx, so cpu_is_pxa3xx().
> I can't find any reason within the source that it wouldn't work. pxafb
> uses it, which is used by littleton and zylonite. I'm not sure when
> pxa_gpio_mode should be used vs the mfp pin config.
pxa_gpio_mode() is deprecated, please don't use that, even with pxa2xx
platforms. The reason some legacy pxa_gpio_mode() is still there, e.g.
pxafb, is that not all platforms have transitioned into use the new MFP
API, til then, I'll schedule a cleanup to remove all those pxa_gpio_mode,
so whenever possible, don't introduce any new pxa_gpio_mode().
P.S. the reason pxa_gpio_mode() doesn't cause any obvious consequence is
that PXA3xx no longer has those GAFR registers, but that's really going
to affect other registers, esp. the GPDR, which isn't correct.
> >> Support building pxa2xx-lib for several pxa chip versions by making code
> >> run-time selected, not only compile-time
> >> Signed-off-by: Russ Dill <russ.dill at gmail.com>
> >> ---
> >> include/asm-arm/arch-pxa/pxa-regs.h | 4 +-
> >> sound/arm/Kconfig | 2 +-
> >> sound/arm/pxa2xx-ac97-lib.c | 174
> >> sound/soc/pxa/pxa2xx-i2s.c | 16 ++-
> >> 4 files changed, 95 insertions(+), 101 deletions(-)
> > --
> > With best wishes
> > Dmitry
More information about the Alsa-devel