View | Details | Raw Unified | Return to bug 196081 | Differences between
and this patch

Collapse All | Expand All

(-)new.c (-2 / +2 lines)
Lines 233-239 Link Here
233
233
234
    /* Set minimum and maximum operating frequencies (400kHz-50MHz). */
234
    /* Set minimum and maximum operating frequencies (400kHz-50MHz). */
235
    sc->mmc_host.f_min = 400000;
235
    sc->mmc_host.f_min = 400000;
236
    sc->mmc_host.f_max = 52000000;
236
    sc->mmc_host.f_max = 50000000;
237
237
238
    /* Set operation conditions (voltage). */
238
    /* Set operation conditions (voltage). */
239
    sc->mmc_host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340;
239
    sc->mmc_host.host_ocr = MMC_OCR_320_330 | MMC_OCR_330_340;
Lines 305-311 Link Here
305
    /* Wait until the reset is done or a timeout occurs. */
305
    /* Wait until the reset is done or a timeout occurs. */
306
    do {
306
    do {
307
        reg_value = a10_mmc_read_4(sc, A10_MMC_GLOBAL_CONTROL_REG);
307
        reg_value = a10_mmc_read_4(sc, A10_MMC_GLOBAL_CONTROL_REG);
308
    } while ((reg_value & A10_MMC_HARDWARE_RESET_BITS) && (--time_left));
308
    } while ((!reg_value & A10_MMC_HARDWARE_RESET_BITS) && (--time_left));
309
309
310
    if (!time_left) {
310
    if (!time_left) {
311
        device_printf(sc->device, "Reset timeout!\n");
311
        device_printf(sc->device, "Reset timeout!\n");

Return to bug 196081