Atmel website | ARM Community | AVR freaks | Technical Support
Banner
Welcome to AT91SAM Community Forum
http://www.at91.com/samphpbb/

Trying to get SD/MMC working on AT91SAM9XE(9260)
http://www.at91.com/samphpbb/viewtopic.php?f=12&t=19627
Page 1 of 1

Author:  reinhardm [ Tue Oct 12, 2010 8:48 pm ]
Post subject:  Trying to get SD/MMC working on AT91SAM9XE(9260)

Hello,

I am trying to get SD or MMC running with top of tree kernel (2.6.35.rc7).
I have defined:

CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_BOUNCE=y
CONFIG_MMC_AT91=y

also in the board-top9000:

static struct at91_mmc_data __initdata top9000_mmc_data = {
.slot_b = 0,
.wire4 = 1,
.det_pin = AT91_PIN_PC9,
};
- also -
/* MMC */
at91_add_device_mmc(0, &top9000_mmc_data);

However there are no kernel messages whatsoever about detecting a card.
It is worth mentioning that all sorts of cards actually do work under u-boot - so the hardware should be wired ok. And yes, the card is connected to the "A" slot pins.
I also had commented out the .det_pin and had the card inserted during kernel boot.
Also important mentioning is that USB sticks are well detected and the partitions are displayed and mountable - that means that partition support and FAT filesystems are properly compiled into the kernel.

My questions are:

1. should TOT kernel work or are still some older patches required?
2. are there any special processes required to detect a card?
3. are there any other prerequisites necessary to initialize the MCI hardware beyond what is done by "at91_add_device_mmc" ?
(I added some kprintf's to at91sam9260_devices.c and the "Slot A" part is really executed)

Maybe someone has ideas where I should additionally look at to solve the puzzle..?

Thanks in advance,
Reinhard

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/