[U-Boot] [PATCH] mmc: add generic mmc spi driver

Mike Frysinger vapier at gentoo.org
Sun Apr 25 08:56:09 CEST 2010


On Friday 23 April 2010 01:55:11 Thomas Chou wrote:
> On 04/23/2010 12:04 PM, Thomas Chou wrote:
> >> it's too bad the new framework doesnt allow for dynamic probing like
> >> the spi layer.  makes it a pain to work with a SPI/MMC card that can have
> >> the CS changed on the fly.
> 
> Second thought.
> With generic mmc framework, we can instance multiple mmc devices. Then
> we can probe one of them when we want.

i dont think that's a scalable solution.  what if you have multiple spi busses 
or 10's of GPIO CS's ?  only way to scale is to have a new subcommand so 
people can do it themselves.  a simple CONFIG_CMD_MMC_SPI command which 
forwards along calls to mmc_spi_init() on the fly would work.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100425/c4072e98/attachment.pgp 


More information about the U-Boot mailing list