From nobody Mon Apr 29 18:33:17 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1499672955343566.7007609842713; Mon, 10 Jul 2017 00:49:15 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 953392095D2D5; Mon, 10 Jul 2017 00:47:28 -0700 (PDT) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6C49E2095D2C9 for ; Mon, 10 Jul 2017 00:47:27 -0700 (PDT) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2017 00:49:11 -0700 Received: from zwei4-mobl.ccr.corp.intel.com ([10.239.198.17]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2017 00:46:08 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,339,1496127600"; d="scan'208";a="109448016" From: zwei4 To: edk2-devel@lists.01.org Date: Mon, 10 Jul 2017 15:46:04 +0800 Message-Id: <20170710074604.16320-1-david.wei@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] LPDDR4 Configuration. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Change LPDDR4 configuration for Benson Glacier. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- .../BensonGlacier/BoardInitPreMem/BoardInitMiscs.c | 34 +++++++++++++++++-= ---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMe= m/BoardInitMiscs.c b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardI= nitPreMem/BoardInitMiscs.c index bb1c9bfae..5424df06f 100644 --- a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMem/Board= InitMiscs.c +++ b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMem/Board= InitMiscs.c @@ -83,13 +83,6 @@ BgUpdateFspmUpd ( } =20 } - // - // override RankEnable settings for Benson - // - FspUpdRgn->FspmConfig.Ch0_RankEnable =3D 1; - FspUpdRgn->FspmConfig.Ch1_RankEnable =3D 1; - FspUpdRgn->FspmConfig.Ch2_RankEnable =3D 1; - FspUpdRgn->FspmConfig.Ch3_RankEnable =3D 1; =20 DEBUG ((DEBUG_INFO, "UpdateFspmUpd - gEfiPlatformInfoGuid\n")); Hob.Raw =3D GetFirstGuidHob (&gEfiPlatformInfoGuid); @@ -104,10 +97,37 @@ BgUpdateFspmUpd ( ASSERT (FALSE); } =20 + FspUpdRgn->FspmConfig.Package =3D 1; + FspUpdRgn->FspmConfig.Profile =3D 11; + FspUpdRgn->FspmConfig.MemoryDown =3D 1; + FspUpdRgn->FspmConfig.DDR3LPageSize =3D 0; + FspUpdRgn->FspmConfig.DDR3LASR =3D 0; + FspUpdRgn->FspmConfig.MemorySizeLimit =3D 0x1800; + FspUpdRgn->FspmConfig.DIMM0SPDAddress =3D 0; + FspUpdRgn->FspmConfig.DIMM1SPDAddress =3D 0; + FspUpdRgn->FspmConfig.DDR3LPageSize =3D 0; + FspUpdRgn->FspmConfig.DDR3LASR =3D 0; + + FspUpdRgn->FspmConfig.Ch0_RankEnable =3D 1; + FspUpdRgn->FspmConfig.Ch0_DeviceWidth =3D 2; FspUpdRgn->FspmConfig.Ch0_DramDensity =3D 2; + FspUpdRgn->FspmConfig.Ch0_Option =3D 3; + + FspUpdRgn->FspmConfig.Ch1_RankEnable =3D 1; + FspUpdRgn->FspmConfig.Ch1_DeviceWidth =3D 2; FspUpdRgn->FspmConfig.Ch1_DramDensity =3D 2; + FspUpdRgn->FspmConfig.Ch1_Option =3D 3; + + FspUpdRgn->FspmConfig.Ch2_RankEnable =3D 1; + FspUpdRgn->FspmConfig.Ch2_DeviceWidth =3D 2; FspUpdRgn->FspmConfig.Ch2_DramDensity =3D 2; + FspUpdRgn->FspmConfig.Ch2_Option =3D 3; + + FspUpdRgn->FspmConfig.Ch3_RankEnable =3D 1; + FspUpdRgn->FspmConfig.Ch3_DeviceWidth =3D 2; FspUpdRgn->FspmConfig.Ch3_DramDensity =3D 2; + FspUpdRgn->FspmConfig.Ch3_Option =3D 3; + return EFI_SUCCESS; } =20 --=20 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel