Hi, (Sorry, patch in attachment as I still don't have a decent mail setup at my company) Fix clock rate setting on mxs-mmc driver. Previously, if div2 was zero the value for TIMING_CLOCK_RATE would have been 255 instead of 0. Also the limits for div1 (TIMING_CLOCK_DIVIDE) and div2 (TIMING_CLOCK_RATE + 1) where not correctly defined. Can easily be reproduced on mx23evk: default clock for high speed sdio cards is 50 MHz. With a SSP_CLK of 28.8 MHz default), this resulted in an actual clock rate of about 56 kHz. Tested on mx23evk. Changes in V2 patch: - use DIV_ROUND_UP to make sure the actual clock rate is not higher then the requested clock rate. - rename variables to reflect naming in datasheet and to make things more clear Regards, Koen
Attachment:
0001-mxs-mmc-fix-clock-rate-setting.patch
Description: Binary data