Skip to contentSkip to conversation

MMC initialisation

U-Boot Reinhard Meyer 1 participant 1 message Jan 6, 2011 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Arghhh....
Didn't see the original message was not sent to the list... So my reply was neither...

Quoted 1 line · Reinhard Meyer

Dear ????,

Please, dear Henry, ALL u-boot related questions MUST go to the mailing list, too.

Quoted 28 lines
Quoted 10 lines

I will porting U-Boot mmc part to my own board, still use U-Boot as bootloader. First, I should research the source code of mmc part in U-Boot.
I found top9000eval_xe board support mmc, and SoC same with mine, (arm926ejs) Mr. Reinhard Meyer is enthusiastic working here, Thanks a lot!
Let me describe mmc driver init process: (version: u-boot.2010.12)
1. arch/arm/lib/board.c -> board_init_r() -> mmc_initialize(bd);
2. drivers/mmc/mmc.c -> int mmc_initialize(bd_t *bis)
3. board/emk/top9000/top9000.c -> int board_mmc_init(bd_t *bd)
-> return atmel_mci_init((void *)AT91_BASE_MCI);
4. drivers/mmc/gen_atmel_mci.c -> int atmel_mci_init(void *regs)

...

Quoted 3 lines

mmc->init = mci_init;
// mmc->init(mmc); // How it Implementation
/* need to be able to pass these in on a board by board basis */

...

I am not sure what your question/problem is here.

If you wonder how and when mmc->init() is called, it is only called when the command "mmcinfo" is given.

This is sure not perfect, and discussions have been around about this. "common/cmd_mmc.c" would need some rework there...

However discussions are left open on how exactly changes should be done.

Best Regards,
Reinhard