[U-Boot] [PATCH] Create a new driver for Atmel at91/avr MCI adapters that uses the u-boot mmc framework.

Reinhard Meyer u-boot at emk-elektronik.de
Tue Aug 10 12:25:03 CEST 2010


Rob Emanuele schrieb:
> To use it on your platform add defines like these:
> #define CONFIG_MMC                      1
> #define CONFIG_GENERIC_MMC              1
> #define CONFIG_GENERIC_ATMEL_MCI        1
<snip>

Dear Rob Emanuele,

this patch applies to current TOT, however it does
not work flawlessly:

TOP9000> fatls mmc 0:1
gen_atmel_mci: CMDR 0x00001050 (16) ARGR 0x00000000 (SR: 0x00000000) COMMAND Dbg
 Msg
gen_atmel_mci: CMDR 0x00051051 (17) ARGR 0x00000000 (SR: 0x00000000) COMMAND Dbg
 Msg

*** system hangs here ***

But, if preceeded by a mmc read command it works (except for some odd clock
related messages):

TOP9000> mmc read 0 21000000 0 1

MMC read: dev # 0, block # 0, count 1 ... mmc: setting clock 150000 Hz, block size 512
mmc: clock 150000 too low; setting CLKDIV to 255
mmc: setting clock 0 Hz, block size 512
mmc: clock 0 too low; setting CLKDIV to 255
mmc: setting clock 194000 Hz, block size 512
gen_atmel_mci: CMDR 0x00001048 ( 8) ARGR 0x000001aa (SR: 0x0010c0e5) COMMAND Failed
mmc: setting clock 194000 Hz, block size 512
mmc: setting clock 25000000 Hz, block size 512
1 blocks read: OK
TOP9000> fatls mmc 0:1
    28521   blaue berge.jpg

1 file(s), 0 dir(s)

Which hardware(CPU) did you test it, and which u-boot version?

Best Regards,
Reinhard Meyer



More information about the U-Boot mailing list