lkml.org 
[lkml]   [2006]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectMMC: 2/2 Fix MMC_POWER_UP on some OMAP boards

    MMC spec says that we must not enable clock prior to the power
    stabilizing. But at least omap16xx needs clock divisor configured
    during MMC_POWER_UP.

    Signed-off-by: Tony Lindgren <tony@atomide.com>

    --- a/drivers/mmc/omap.c
    +++ b/drivers/mmc/omap.c
    @@ -899,9 +899,16 @@ static void mmc_omap_set_ios(struct mmc_
    int dsor;
    int realclock, i;

    - realclock = ios->clock;
    + /* According to the MMC spec we must not enable clock prior to
    + * power stabilizing. But at least omap16xx needs clock dsor
    + * configured during MMC_POWER_UP.
    + */
    + if ((ios->power_mode == MMC_POWER_UP) && (ios->clock == 0))
    + realclock = mmc->f_min;
    + else
    + realclock = ios->clock;

    - if (ios->clock == 0)
    + if (realclock == 0)
    dsor = 0;
    else {
    int func_clk_rate = clk_get_rate(host->fclk);
    \
     
     \ /
      Last update: 2006-05-04 09:29    [W:0.039 / U:31.516 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site