From: Wolfgang Denk Date: Fri, 27 Mar 2009 20:01:10 +0100 Subject: [U-Boot] [PATCH] omap3: mmc: mmc2 support In-Reply-To: <49CC0CC9.7060900@googlemail.com> References: <49CB5D3D.1070506@samsung.com> <49CC0CC9.7060900@googlemail.com> Message-ID: <20090327190110.C4094832E406@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Dirk, In message <49CC0CC9.7060900@googlemail.com> you wrote: > Minkyu Kang wrote: > > There are 3 MMC/SD/SDIO host controllers inside the device. > > This patch will support mmc2 and mmc3. > > By this patch, the MMC controller actually used is configured by > CONFIG_MMC_INDEX at compile time? I.e. setting CONFIG_MMC_INDEX to 1 > will use mmc1, 2 will switch to mmc2 and CONFIG_MMC_INDEX 3 will > switch to mmc3? > > If I got this right, do you think we can do this at runtime? E.g. > implementing a custom command > > select_mmc <# of mmc controller to be used> > > ? > > With this, we could switch to mmc2 by doing something like > > select_mmc 2 > > and afterwards all mmc read/write access will go to mmc2. > > What do you think? The idea is OK, but I would like to have this implemented using a consistent interface across all other storage devices. In other words, a "FOO device [dev] - show or set current device" command should be implemented, no matter if "FOO" is "ide" or "usb" or "sata" or "scsi" or "mmc" or ... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de How many Unix hacks does it take to change a light bulb? Let's see, can you use a shell script for that or does it need a C program?