[En-Nut-Discussion] MMC speed

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu May 29 13:57:38 CEST 2008


Hi!

> What is the speed on the spi when using mmc/sd card and phat file system on
> a at91sam7x? Can you set the speed somewhere?

Everything is defined in arch/arm/dev/spimmc_at91.c

This is the line you might want to change:

outr(MMC_SPI_CSR1, (3 << SPI_SCBR_LSB) | SPI_CPOL);

In this case the spi clock is MCK devided by 3.

Regards,

Ole Reinhardt

-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list