From nobody Fri May 3 03:59:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+40304+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40304+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1557388932; cv=none; d=zoho.com; s=zohoarc; b=RIGpv3FijxOkSDEQ4ZHdT6KS6qviCPyjHbNyxjd370/BnnybT+7gQgOvro2tTKhGsKOwMi7LvT7LSlWh4aSgBARN4wojVq1iTrpoYAr0C1F3exSYUX0jiHE67+D2ddUrzZUMO3P7Om3oYu6y4NwFATdtn9/6MWMqtBu/AzxYVjY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557388932; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=nWeJ8m6gp0Z7Nd1ENfMrxvFcFnBf5hV1wY5b/w7F2QE=; b=HyRiIGSz8QDC/RGwuLxn5lucjaYndSp6m96vJyZy7j+uyHa3uT7OgekPgXfC+fbgW/3Yw5govsP9GvRrafHXtLPvGLvtEvS4+NGhm/nKumF6XJR87VoaiY+Kju6lpsQzOmJBvrLeuuwF8SUFHpbONcunf1PgUHiFqWPCfeo5o2k= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+40304+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1557388932843900.2148732101319; Thu, 9 May 2019 01:02:12 -0700 (PDT) Return-Path: X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by groups.io with SMTP; Thu, 09 May 2019 01:02:11 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 May 2019 01:02:11 -0700 X-ExtLoop1: 1 X-Received: from pg-nx11.altera.com ([10.104.4.26]) by orsmga003.jf.intel.com with ESMTP; 09 May 2019 01:02:09 -0700 From: "Loh, Tien Hock" To: devel@edk2.groups.io, thloh85@gmail.com Cc: "Tien Hock, Loh" , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH v2] EmbeddedPkg: Clear CTYPE on initialization Date: Thu, 9 May 2019 16:02:04 +0800 Message-Id: <1557388925-184479-1-git-send-email-tien.hock.loh@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,tien.hock.loh@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1557388932; bh=Oea4V+v7j1VRIRnzX2DocexJJSsgIXT2s1ddM8T9DDg=; h=Cc:Date:From:Reply-To:Subject:To; b=MEgBsLGVQOUjuAevGFfegs5Gs/VdcjRapMP1vAoe5/ccPnzQ0pQoyY5G2OVMQwRpct/ vj/DfrBxMbFZmjZfza1qY2O+jyklAdQKxsRuvSRkGOPAvsHtTgcFnIGe0LZ8a2DAWgAjc qur4gFy65DcaJWIiHqxcVeVxj+bJA2l8CBA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Tien Hock, Loh" Clear CTYPE on initialization. This is important if previous bootloader changes the CTYPE can cause the controller to not initialize correctly if CTYPE is not reset to 0 Signed-off-by: "Tien Hock, Loh" Cc: Leif Lindholm Cc: Ard Biesheuvel --- EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.c b/EmbeddedPkg/Driver= s/DwEmmcDxe/DwEmmcDxe.c index e0068655ca..c6c8e04917 100644 --- a/EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.c +++ b/EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.c @@ -205,6 +205,7 @@ DwEmmcNotifyState ( MmioWrite32 (DWEMMC_TMOUT, ~0); MmioWrite32 (DWEMMC_IDINTEN, 0); MmioWrite32 (DWEMMC_BMOD, DWEMMC_IDMAC_SWRESET); + MmioWrite32 (DWEMMC_CTYPE, 0); =20 MmioWrite32 (DWEMMC_BLKSIZ, DWEMMC_BLOCK_SIZE); do { --=20 2.19.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#40304): https://edk2.groups.io/g/devel/message/40304 Mute This Topic: https://groups.io/mt/31552976/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-