Changeset 347

Show
Ignore:
Timestamp:
07/06/09 09:34:31 (5 months ago)
Author:
goskab
Message:

Added a 1.5S delay to card mount, this makes the "hesitation" issue with SD cards a thing of the past. There may still be a 1uS window for bad things to happen, but
hesitation won't cause it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/software/linux-oswald/drivers/mmc/host/omap_hsmmc.c

    r134 r347  
    573573        mmc_omap_fclk_state(host, ON); 
    574574        if (host->carddetect) { 
     575                //mmc_detect_change(host->mmc, (HZ * 200) / 1000); 
     576#ifdef CONFIG_MACH_OMAP3_OSWALD 
     577                mmc_detect_change(host->mmc, 150); //force long delay, prevents crash on hesitant inserts 
     578#else 
    575579                mmc_detect_change(host->mmc, (HZ * 200) / 1000); 
     580#endif 
    576581        } else { 
    577582                OMAP_HSMMC_WRITE(host->base, SYSCTL,