2010-09-07 10:13:55     u-boot with mmc support for CM-537e

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-09-07 10:13:55     u-boot with mmc support for CM-537e

Matthias Laur (GERMANY)

Message: 93225   

 

Hi,

 

I need mmc support for u-boot on a CM-537e from Blutechnix wit the evalboard EVAL-BF5xx.

 

I add the following settings to he config file cm-bf537e.h from bf537-stamp.h:

 

#define CONFIG_SYS_MONITOR_LEN        (512 * 1024)

#define CONFIG_SYS_MALLOC_LEN        (384 * 1024)

 

/*

* SPI Settings

*/

#define CONFIG_BFIN_SPI

#define CONFIG_ENV_SPI_MAX_HZ    30000000

#define CONFIG_SF_DEFAULT_SPEED    30000000

 

 

/*

* SPI_MMC Settings

*/

#define CONFIG_MMC

#define CONFIG_SPI_MMC

 

It compiles without errors. But if I try to access the sd card, I get the following output:

 

bfin> mmc init

using spi0.1 at 30000000 hz with mode 3

No MMC card found

bfin>

      

 

What's wrong? I can access the sd card from uclinux without problems. Thank you for any help!

 

Regards,

 

Matthias

TranslateQuoteReplyEditDelete

 

 

2010-09-07 12:14:09     Re: u-boot with mmc support for CM-537e

Mike Frysinger (UNITED STATES)

Message: 93227   

 

are you sure the MMC slot is on SPI CS 1 and not a different CS ?

QuoteReplyEditDelete

 

 

2010-09-09 03:52:15     Re: u-boot with mmc support for CM-537e

Harald Krapfenbauer (AUSTRIA)

Message: 93297   

 

Yes, this is correct. The corresponding Linux config is:

 

.modalias = "mmc_spi",

.max_speed_hz = 20000000,     /* max spi clock (SCK) speed in HZ */

.bus_num = 0,

.chip_select = 1,

.controller_data = &mmc_spi_chip_info,

.mode = SPI_MODE_3,

 

Greetings,

Harald

Attachments

    Outcomes