public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] PXAMCI Monahans support
Date: Sat, 24 Apr 2010 03:37:11 +0200	[thread overview]
Message-ID: <201004240337.11348.marek.vasut@gmail.com> (raw)
In-Reply-To: <x2s2acbd3e41004231822m8c55daf5pe0b1d1f94a411746@mail.gmail.com>

Dne So 24. dubna 2010 03:22:08 Andy Fleming napsal(a):
> On Fri, Mar 26, 2010 at 12:57 AM, Marek Vasut <marek.vasut@gmail.com> wrote:
> > ---
> >  drivers/mmc/pxa_mmc.c |   13 ++++++++-----
> >  1 files changed, 8 insertions(+), 5 deletions(-)
> > 
> > diff --git a/drivers/mmc/pxa_mmc.c b/drivers/mmc/pxa_mmc.c
> > index 8225235..18d5df9 100644
> > --- a/drivers/mmc/pxa_mmc.c
> > +++ b/drivers/mmc/pxa_mmc.c
> > @@ -126,7 +126,7 @@ mmc_block_read(uchar * dst, ulong src, ulong len)
> >        MMC_I_MASK = ~MMC_I_MASK_RXFIFO_RD_REQ;
> >        while (len) {
> >                if (MMC_I_REG & MMC_I_REG_RXFIFO_RD_REQ) {
> > -#ifdef CONFIG_PXA27X
> > +#if defined(CONFIG_PXA27X) || defined(CONFIG_CPU_MONAHANS)
> >                        int i;
> >                        for (i = min(len, 32); i; i--) {
> >                                *dst++ = *((volatile uchar *)&MMC_RXFIFO);
> > @@ -558,8 +558,11 @@ mmc_legacy_init(int verbose)
> >        set_GPIO_mode(GPIO6_MMCCLK_MD);
> >        set_GPIO_mode(GPIO8_MMCCS0_MD);
> >  #endif
> > +#ifdef CONFIG_CPU_MONAHANS     /* pxa3xx */
> > +       CKENA |= CKENA_12_MMC0 | CKENA_13_MMC1;
> > +#else  /* pxa2xx */
> 
> Let's try to find a solution to this that doesn't require filling this
> driver with more #ifdefs.

That won't make too much sense. You won't run the same binary on both pxa2xx and 
pxa3xx ... ever. Increasing the bootloader size only because you want to avoid 
ifdef makes no sense either.

There are other ifdefs in that driver that need to go away (will in further 
patches), this one is the least harmful one.
> 
> Andy

  reply	other threads:[~2010-04-24  1:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26  5:57 [U-Boot] [PATCH 1/2] Enable PXAFB for PXA27X and PXA3XX Marek Vasut
2010-03-26  5:57 ` [U-Boot] [PATCH 2/2] PXAMCI Monahans support Marek Vasut
2010-04-24  1:22   ` Andy Fleming
2010-04-24  1:37     ` Marek Vasut [this message]
     [not found]       ` <w2s2acbd3e41004231854z53c38d06m101183ec4656d44e@mail.gmail.com>
2010-04-24 11:25         ` Marek Vasut
2010-03-31 12:10 ` [U-Boot] [PATCH 1/2] Enable PXAFB for PXA27X and PXA3XX Marek Vasut
2010-04-14 19:44 ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201004240337.11348.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox