From: Mike Frysinger Date: Sun, 25 Apr 2010 02:56:09 -0400 Subject: [U-Boot] [PATCH] mmc: add generic mmc spi driver In-Reply-To: <4BD1363F.9030204@wytron.com.tw> References: <1271991214-7937-1-git-send-email-thomas@wytron.com.tw> <4BD11C63.2050005@wytron.com.tw> <4BD1363F.9030204@wytron.com.tw> Message-ID: <201004250256.10907.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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