Message ID | 20180222152307.7499-21-peter.maydell@linaro.org |
---|---|
State | Accepted |
Commit | 9b7ec55c5c66ca466a8e34f7780f13a8e77b8a99 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp719935lja; Thu, 22 Feb 2018 07:32:05 -0800 (PST) X-Google-Smtp-Source: AH8x226uLSrk/Vh1jAUO7fYm0I+7wsuOaCzfdJUxA4GApXCyuhnkxuy5z86EUinpHQ2kyixVmjEq X-Received: by 2002:a25:3f83:: with SMTP id m125-v6mr5073405yba.120.1519313525807; Thu, 22 Feb 2018 07:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519313525; cv=none; d=google.com; s=arc-20160816; b=z2GpC3z1rMVg/IVvvM6VtKoDoD96Iu75L6bX+xjORSneFMomEHlW5kxcnDcVOzQmlR TCLAQWxzURJ/o19vX8csLkKd8H9yBbQi2HGL9tiPOM5I8Z+Ik5aWtEwe482Id7rcqDMF Wc0erDdzHTCgdkhMRl06R9ABcr7A8wLrTIjWdMS4cn4ydqhkxsblqo5dwcHyKCQPkgRG o3PzPRIfBQ/iOK5D9noYobvWrBS13B1imCUWVetRjc6sCPdAa6V8LzQqAVR+nY+UFzzc T1hnFVkuamWEZa1AweonjhGpGGKYx5SJ8jxXKv1ZvpqBTYcM7O4xrMtuLoj6Hkx0KDMM 7P+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=A89AQfbHyoBzp+V3420MSyqOhisCuiyboatRIQpTlD4=; b=cgE85IrKjRdcI+udnUwSz41PUh2iuktC5/n/KCjGqjOJ4qHMiCRozhaAReaVwJIqub sY0EQ7bBWx9Xiq2M5gf9k8dAX9OzVwlnzcyVzyM8Vm2jNhzzR4jxemKm2/JOHCdaPPnT fCK4SHtn5Ph1K3WoAATgLscZRNxwHdyWFHFW/EdfLpsqXun6XSDcCURjl3C6Z1HeyqvH U+ZM2vxyS+U5U+XfRqw3LdlVCvnbyjcGvdDSPYETLMN2SbuD6XElTzuZiJP3ic13lABw 5t8RSzNg0BmHLCRFMe2rpg1j7sldaCxEnLWqDaEJXAd3NfZRlgIFORsxvLQRdBbx1txd OvGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z204si48289ywb.573.2018.02.22.07.32.05 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 22 Feb 2018 07:32:05 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1eosqr-0003wt-55 for patch@linaro.org; Thu, 22 Feb 2018 10:32:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1eosii-0004v7-6d for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:23:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1eosih-0001mO-7U for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:23:40 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:46608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1eosih-0001ke-0P for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:23:39 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from <pm215@archaic.org.uk>) id 1eosif-00024x-TU for qemu-devel@nongnu.org; Thu, 22 Feb 2018 15:23:37 +0000 From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Date: Thu, 22 Feb 2018 15:22:55 +0000 Message-Id: <20180222152307.7499-21-peter.maydell@linaro.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180222152307.7499-1-peter.maydell@linaro.org> References: <20180222152307.7499-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 20/32] sdcard: clean the SCR register and add few comments X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target-arm queue
|
expand
|
diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 3526269dbe..c87142d648 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -298,10 +298,13 @@ static void sd_ocr_powerup(void *opaque) static void sd_set_scr(SDState *sd) { - sd->scr[0] = 0x00; /* SCR Structure */ - sd->scr[1] = 0x2f; /* SD Security Support */ - sd->scr[2] = 0x00; + sd->scr[0] = (0 << 4) /* SCR version 1.0 */ + | 0; /* Spec Versions 1.0 and 1.01 */ + sd->scr[1] = (2 << 4) /* SDSC Card (Security Version 1.01) */ + | 0b0101; /* 1-bit or 4-bit width bus modes */ + sd->scr[2] = 0x00; /* Extended Security is not supported. */ sd->scr[3] = 0x00; + /* reserved for manufacturer usage */ sd->scr[4] = 0x00; sd->scr[5] = 0x00; sd->scr[6] = 0x00;