Search
SailfishOS Open Build Service
>
Projects
>
home:dcthang:branches:nemo:devel:hw:ti:omap3:n900
>
kernel-adaptation-n900
> 0001-mmc-Adjust-timings-for-power-ramping-up.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0001-mmc-Adjust-timings-for-power-ramping-up.patch of Package kernel-adaptation-n900
From ceb13ae8156fd0b1fc6a27b352855fc02f651928 Mon Sep 17 00:00:00 2001 From: Dmitry Rozhkov <dmitry.rozhkov@jollamobile.com> Date: Fri, 10 Aug 2012 15:07:19 +0300 Subject: [PATCH] mmc: Adjust timings for power ramping up According to p6.4.1.1 of Physical Layer Simplified Specification Ver3.01 the "host needs to keep power line level less than 0.5V and more than 1ms before power ramp up". This patch adds a delay of 10ms before powering up the host. --- drivers/mmc/core/core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 57dcf8f..1c110f3 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -899,6 +899,13 @@ static void mmc_power_up(struct mmc_host *host) { int bit; + /* + * According to p6.4.1.1 of Physical Layer Simplified Specification + * Ver3.01 the "host needs to keep power line level less than 0.5V and + * more than 1ms before power ramp up". + */ + mmc_delay(10); + /* If ocr is set, we use it */ if (host->ocr) bit = ffs(host->ocr) - 1; -- 1.7.9.5