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

Mike Frysinger
2010-04-26T15:59:32Z

On Monday 26 April 2010 10:37:07 Thomas Chou wrote:
> I have moved spi slave setup so that we can change the cs on the fly. We
> could add a subcommand, like,
>
> mmc_spi [bus:]cs
>
> Where should I place this command? in a new file in common dir or inside
> the mmc_spi driver?

i would keep the current board init hook you have currently so that the boards
which do have static settings can leverage that, and have the mmc_spi command
simply call that. i'd have the syntax be:
mmc_spi [bus:]cs [hz [mode]]

i'd have it be a dedicated command in common/ so that people can disable it if
they dont want it.
-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/20100426/05a65066/attachment.pgp