Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Trying to get SD/MMC working on AT91SAM9XE(9260)
PostPosted: Tue Oct 12, 2010 8:48 pm 
Offline

Joined: Thu Jul 08, 2010 9:36 pm
Posts: 28
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: