From: Reinhard Meyer Date: Tue, 10 Aug 2010 12:25:03 +0200 Subject: [U-Boot] [PATCH] Create a new driver for Atmel at91/avr MCI adapters that uses the u-boot mmc framework. In-Reply-To: <1272485453-5502-1-git-send-email-rob@emanuele.us> References: <1272485453-5502-1-git-send-email-rob@emanuele.us> Message-ID: <4C6128FF.4020105@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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