public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: stefano babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] fsl_esdhc.c: eMMC 4.4 support?
Date: Fri, 24 Feb 2012 10:57:38 +0100	[thread overview]
Message-ID: <4F475F12.8040807@denx.de> (raw)
In-Reply-To: <4F473A2B.8050308@de.bosch.com>

Am 24/02/2012 08:20, schrieb Dirk Behme:
> On 23.02.2012 22:45, Andy Fleming wrote:
>> Yes, that's very annoying. Of course, Freescale *does* use fsl_esdhc,
>> but for Power Architecture. I know that changes were submitted to
>> support i.MX on fsl_esdhc, too, so I don't know why they've opted to
>> use their own file in that tree. Hopefully they can be convinced to
>> add support to mainline.
> 
> I'm not sure if they can be convinced :(
> 
> Anyway, what would be the preferred way to improve the xxx_esdhc in
> mainline U-Boot?

Sorry, but support for SDHC *is* already in u-boot. The fsl_esdhc.c
supports *both* architectures.

> 
> Both, the Freescale U-Boot [1] and Barebox [2] have a imx-esdhc.c. With
> this, the options I see for mainline U-Boot are

There are a lot of other drivers that are duplicated in the sources
delivered by Freescale [1]. This is not a good reason to do the same in
mainline. And Freescale's sources do not use the MMC framework we
currently use, as fas as I remember.

> 
> a) to port the Freescale/Barebox imx-esdhc.c changes/improvements into
> U-Boot's fsl_esdhc.c

Yes. We have already profit in the past from changes done for PowerPC,
that fixed the same issues for i.MX. Are you really sure that the
missing feature (8 bit support) cannot be used on PowerPc, too ?

I am for maintaining one single driver and avoid as much as possible to
duplicate code when it is not strictly needed.

> 
> or
> 
> b) create a new imx-esdhc.c in U-Boot, too.

No, don't do it. fsl_esdhc.c driver was modified in the past to add
support for i.MX *after* Freescale published imx-esdh.c. And also at
that time, the decision was to modify the driver for i.MX instead of
adding a new one.

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

      reply	other threads:[~2012-02-24  9:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23 12:25 [U-Boot] fsl_esdhc.c: eMMC 4.4 support? Dirk Behme
2012-02-23 21:45 ` Andy Fleming
2012-02-24  7:20   ` Dirk Behme
2012-02-24  9:57     ` stefano babic [this message]

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=4F475F12.8040807@denx.de \
    --to=sbabic@denx.de \
    --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