From: Tom Rini Date: Mon, 15 Jun 2015 09:47:44 -0400 Subject: [U-Boot] [PATCH] keystone2: use SPD info to configure K2HK and K2E DDR3 In-Reply-To: <1434371541-32633-1-git-send-email-vitalya@ti.com> References: <1434371541-32633-1-git-send-email-vitalya@ti.com> Message-ID: <20150615134744.GO1728@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jun 15, 2015 at 08:32:21AM -0400, Vitaly Andrianov wrote: > This commit replaces hard-coded EMIF and PHY DDR3 configurations for > predefined SODIMMs to a calculated configuration. The SODIMM parameters > are read from SODIMM's SPD and used to calculated the configuration. > > The current commit supports calculation for DDR3 with 1600MHz and 1333MHz > only. > > Signed-off-by: Vitaly Andrianov There's two problems here. The first is, no floating point math in U-Boot. The second is that between board/ti/ks2_evm/ddr3_spd.c that you're adding and drivers/ddr/fsl/ddr3_dimm_params.c and drivers/ddr/mvebu/ddr3_spd.c it seems like we have two and you would add a 3rd file for reading the standard-defined SPD data. We need one set of functions in drivers/ddr/ to read the spd information and do whatever really common bits can be done with it and the rest in drivers/ddr/subdir/. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: