On Mon, Sep 20, 2010 at 9:10 AM, Wolfram Sang <w.s...@pengutronix.de> wrote:
> On Mon, Sep 20, 2010 at 08:09:26AM -0400, zhangfei gao wrote:
>> On Mon, Sep 20, 2010 at 5:50 AM, Wolfram Sang <w.s...@pengutronix.de> wrote:
>> > On Mon, Sep 20, 2010 at 05:46:02PM +0800, zhangfei gao wrote:
>> >
>> >> diff --git a/drivers/mmc/host/sdhci-pxa.c b/drivers/mmc/host/sdhci-pxa.c
>> >> new file mode 100644
>> >> index 0000000..3e091c1
>> >> --- /dev/null
>> >> +++ b/drivers/mmc/host/sdhci-pxa.c
>> >> @@ -0,0 +1,253 @@
>> >> +/* linux/drivers/mmc/host/sdhci-pxa.c
>> >> + *
>> >> + * Copyright 2010 Marvell
>> >> + *      Zhangfei Gao <zhangfei....@marvell.com>
>> >> + *
>> >> + * This program is free software; you can redistribute it and/or modify
>> >> + * it under the terms of the GNU General Public License version 2 as
>> >> + * published by the Free Software Foundation.
>> >> + */
>> >> +
>> >> +/* Supports:
>> >> + * SDHCI support for MMP2/PXA910/PXA168
>> >> + *
>> >> + * Based on sdhci-platfm.c
>> >> + */
>> >
>> > Why is it only "based on" and not directly using it?
>>
>> Thanks for your suggestion.
>> This is the first stage, already implement sd card function, we will
>> have some patches later to enhance the driver.
>> We have to access many private registers to enable specific control.
>> Besides some sdio device need some specific control, like marvell 8787
>> host sleep, it is much reasonable to implement inside the driver.
>
> Hmm, which hooks are missing for you to implement this as an extension
> of the pltfm-driver? Maybe it makes sense to simply add this hook?

We refered several mmc host drivers, such as sdhci-s3c.c,
sdhci-spear.c, and we want to align with others, which also meet pxa
requirement and low risk to transfer from the existing driver.

We have three or four device in one soc with the same driver, for
example one for sd, one for wifi, one for emmc, etc.
Each device have specific clock provider, which should be opened at
start, and closed when no operation to same power.
Specific quirk is needed for different device, which should be
transfered from platform data, for example on-chip wifi alwayes stay
on chip and emmc may require sd_clk free running to init.
The max_speed also may be different for board issue though controller
support max is 50M, which could get from capability.

>
> --
> Pengutronix e.K.                           | Wolfram Sang                |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkyXXV8ACgkQD27XaX1/VRtAxQCfafH+k4+HhWiDxM+cRqDn8KYC
> Mq0AnRrh3v5192K7LdpIlLIxVBQI4ljW
> =RPet
> -----END PGP SIGNATURE-----
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to