public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: zwei4 <david.wei@intel.com>
To: edk2-devel@lists.01.org
Subject: [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] LPDDR4 Configuration.
Date: Mon, 10 Jul 2017 15:46:04 +0800	[thread overview]
Message-ID: <20170710074604.16320-1-david.wei@intel.com> (raw)

Change LPDDR4 configuration for Benson Glacier.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: zwei4 <david.wei@intel.com>
---
 .../BensonGlacier/BoardInitPreMem/BoardInitMiscs.c | 34 +++++++++++++++++-----
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMem/BoardInitMiscs.c b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMem/BoardInitMiscs.c
index bb1c9bfae..5424df06f 100644
--- a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMem/BoardInitMiscs.c
+++ b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPreMem/BoardInitMiscs.c
@@ -83,13 +83,6 @@ BgUpdateFspmUpd (
     }
 
   }
-  //
-  // override RankEnable settings for Benson
-  //
-  FspUpdRgn->FspmConfig.Ch0_RankEnable   = 1;
-  FspUpdRgn->FspmConfig.Ch1_RankEnable   = 1;
-  FspUpdRgn->FspmConfig.Ch2_RankEnable   = 1;
-  FspUpdRgn->FspmConfig.Ch3_RankEnable   = 1;
 
   DEBUG ((DEBUG_INFO, "UpdateFspmUpd - gEfiPlatformInfoGuid\n"));
   Hob.Raw = GetFirstGuidHob (&gEfiPlatformInfoGuid);
@@ -104,10 +97,37 @@ BgUpdateFspmUpd (
     ASSERT (FALSE);
   }
 
+  FspUpdRgn->FspmConfig.Package         = 1;
+  FspUpdRgn->FspmConfig.Profile         = 11;
+  FspUpdRgn->FspmConfig.MemoryDown      = 1;
+  FspUpdRgn->FspmConfig.DDR3LPageSize   = 0;
+  FspUpdRgn->FspmConfig.DDR3LASR        = 0;
+  FspUpdRgn->FspmConfig.MemorySizeLimit = 0x1800;
+  FspUpdRgn->FspmConfig.DIMM0SPDAddress = 0;
+  FspUpdRgn->FspmConfig.DIMM1SPDAddress = 0;
+  FspUpdRgn->FspmConfig.DDR3LPageSize   = 0;
+  FspUpdRgn->FspmConfig.DDR3LASR        = 0;
+
+  FspUpdRgn->FspmConfig.Ch0_RankEnable   = 1;
+  FspUpdRgn->FspmConfig.Ch0_DeviceWidth  = 2;
   FspUpdRgn->FspmConfig.Ch0_DramDensity  = 2;
+  FspUpdRgn->FspmConfig.Ch0_Option       = 3;
+
+  FspUpdRgn->FspmConfig.Ch1_RankEnable   = 1;
+  FspUpdRgn->FspmConfig.Ch1_DeviceWidth  = 2;
   FspUpdRgn->FspmConfig.Ch1_DramDensity  = 2;
+  FspUpdRgn->FspmConfig.Ch1_Option       = 3;
+
+  FspUpdRgn->FspmConfig.Ch2_RankEnable   = 1;
+  FspUpdRgn->FspmConfig.Ch2_DeviceWidth  = 2;
   FspUpdRgn->FspmConfig.Ch2_DramDensity  = 2;
+  FspUpdRgn->FspmConfig.Ch2_Option       = 3;
+
+  FspUpdRgn->FspmConfig.Ch3_RankEnable   = 1;
+  FspUpdRgn->FspmConfig.Ch3_DeviceWidth  = 2;
   FspUpdRgn->FspmConfig.Ch3_DramDensity  = 2;
+  FspUpdRgn->FspmConfig.Ch3_Option       = 3;
+
   return EFI_SUCCESS;
 }
 
-- 
2.11.0.windows.1



                 reply	other threads:[~2017-07-10  7:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170710074604.16320-1-david.wei@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox