omap.c (3eb66e91a25497065c5322b1268cbc3953642227) omap.c (a6327b5e57fdc679c842588c3be046c0b39cc127)
1/*
2 * linux/drivers/mmc/host/omap.c
3 *
4 * Copyright (C) 2004 Nokia Corporation
5 * Written by Tuukka Tikkanen and Juha Yrjölä<juha.yrjola@nokia.com>
6 * Misc hacks here and there by Tony Lindgren <tony@atomide.com>
7 * Other hacks (DMA, SD, etc) by David Brownell
8 *

--- 906 unchanged lines hidden (view full) ---

915static inline void set_cmd_timeout(struct mmc_omap_host *host, struct mmc_request *req)
916{
917 u16 reg;
918
919 reg = OMAP_MMC_READ(host, SDIO);
920 reg &= ~(1 << 5);
921 OMAP_MMC_WRITE(host, SDIO, reg);
922 /* Set maximum timeout */
1/*
2 * linux/drivers/mmc/host/omap.c
3 *
4 * Copyright (C) 2004 Nokia Corporation
5 * Written by Tuukka Tikkanen and Juha Yrjölä<juha.yrjola@nokia.com>
6 * Misc hacks here and there by Tony Lindgren <tony@atomide.com>
7 * Other hacks (DMA, SD, etc) by David Brownell
8 *

--- 906 unchanged lines hidden (view full) ---

915static inline void set_cmd_timeout(struct mmc_omap_host *host, struct mmc_request *req)
916{
917 u16 reg;
918
919 reg = OMAP_MMC_READ(host, SDIO);
920 reg &= ~(1 << 5);
921 OMAP_MMC_WRITE(host, SDIO, reg);
922 /* Set maximum timeout */
923 OMAP_MMC_WRITE(host, CTO, 0xff);
923 OMAP_MMC_WRITE(host, CTO, 0xfd);
924}
925
926static inline void set_data_timeout(struct mmc_omap_host *host, struct mmc_request *req)
927{
928 unsigned int timeout, cycle_ns;
929 u16 reg;
930
931 cycle_ns = 1000000000 / host->current_slot->fclk_freq;

--- 587 unchanged lines hidden ---
924}
925
926static inline void set_data_timeout(struct mmc_omap_host *host, struct mmc_request *req)
927{
928 unsigned int timeout, cycle_ns;
929 u16 reg;
930
931 cycle_ns = 1000000000 / host->current_slot->fclk_freq;

--- 587 unchanged lines hidden ---