From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Thu, 21 Mar 2013 09:17:08 -0700 Subject: [U-Boot] [PATCH] mmc: mx6qsabrelite: fsl_esdhc: Define maximum bus width supported by SabreLite board In-Reply-To: <1363847901-29146-1-git-send-email-abbas_raza@mentor.com> References: <1363847901-29146-1-git-send-email-abbas_raza@mentor.com> Message-ID: <514B3284.3070702@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thanks Abbas, On 03/20/2013 11:38 PM, Abbas Raza wrote: > From: Abbas Raza > > Maximum bus width supported by SabreLite board is not 8bit like > all other mx6q specific boards. In case where both host controller > and card support 8bit transfers, they agree to communicate on 8bit > interface while boards like the SabreLite support only 4bit interface. > Due to this reason the mmc 8bit default mode fails on the SabreLite. > To rectify this, define maximum bus width supported by this board (4bit). > If max_bus_width is not defined, it is 0 by default and 8bit width support > will be enabled in host capabilities otherwise host capabilities are modified > accordingly. > > It is tested with a MMCplus card. > > Signed-off-by: Abbas Raza > cc: stefano Babic > cc: Andy Fleming > Acked-by: Dirk Behme > Acked-by: Andrew Gabbasov > --- > board/freescale/mx6qsabrelite/mx6qsabrelite.c | 3 +++ > drivers/mmc/fsl_esdhc.c | 7 +++++++ > include/fsl_esdhc.h | 1 + > 3 files changed, 11 insertions(+) > Tested-by: Eric Nelson Note that the board settings also apply to nitrogen6x and wandboard if you want to expand the patch a bit: http://git.denx.de/u-boot.git/?p=u-boot/u-boot-imx.git;a=blob;f=board/boundary/nitrogen6x/nitrogen6x.c;h=229c2378396d43a365d6682af35c0e519ccd69d4;hb=HEAD#l304 http://git.denx.de/u-boot.git/?p=u-boot/u-boot-imx.git;a=blob;f=board/wandboard/wandboard.c;h=d95189f77de4c3573ec30c53e04fe1b083c1d2b5;hb=HEAD#l107 I also tested against a custom board with 8-bit eMMC. Regards, Eric