2011-06-28 15:45:46     How to add sdcard support while building u-boot

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

2011-06-28 15:45:46     How to add sdcard support while building u-boot

Ashish Gupta (INDIA)

Message: 101804   

 

Hi,

 

I need to build u-boot with support for sdcard on-board our TLL6527M platform (assuming the u-boot has support for sdcard over SPI bus on a blackfin based system). The SDCARD is connected on the spi bus and gpio PH12 is being used for chip select.

 

1. What are the steps to enable sdcard support while building u-boot? Specifically, where to map the correct chip select? I saw this wiki page http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:mmc. It talks about usage but not about building support for it in u-boot.

 

2. Is it possible to map a GPIO instead of native SSEL signals of the blackfin SPI controller as chip select for sdcard in uboot?

 

Thanks & regards,

 

Ashish

QuoteReplyEditDelete

 

 

2011-06-28 22:29:22     Re: How to add sdcard support while building u-boot

Mike Frysinger (UNITED STATES)

Message: 101808   

 

current git trunk does everything dynamically at runtime.  there are no configs to set cs's.

 

use the "mmc_spi" command to initialize a new device at runtime, then use the normal "mmc" api.

QuoteReplyEditDelete

 

 

2011-06-28 22:30:21     Re: How to add sdcard support while building u-boot

Mike Frysinger (UNITED STATES)

Message: 101809   

 

if you really wanted to, you could call mmc_spi_init() in your board's misc_init_r() func, but that's the same thing as using "mmc_spi" at runtime.

QuoteReplyEditDelete

Attachments

    Outcomes