mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
ARM: keystone2: use SPD info to configure K2HK and K2E DDR3
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 <vitalya@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
ef76ebb1ef
commit
d9a76e77c8
10 changed files with 534 additions and 265 deletions
|
@ -10,18 +10,11 @@
|
|||
#ifndef __DDR3_CFG_H
|
||||
#define __DDR3_CFG_H
|
||||
|
||||
extern struct ddr3_phy_config ddr3phy_1600_8g;
|
||||
extern struct ddr3_emif_config ddr3_1600_8g;
|
||||
|
||||
extern struct ddr3_phy_config ddr3phy_1333_2g;
|
||||
extern struct ddr3_emif_config ddr3_1333_2g;
|
||||
|
||||
extern struct ddr3_phy_config ddr3phy_1600_4g;
|
||||
extern struct ddr3_emif_config ddr3_1600_4g;
|
||||
#include <asm/arch/ddr3.h>
|
||||
|
||||
extern struct ddr3_phy_config ddr3phy_1600_2g;
|
||||
extern struct ddr3_emif_config ddr3_1600_2g;
|
||||
|
||||
int ddr3_get_dimm_params(char *dimm_name);
|
||||
int ddr3_get_dimm_params_from_spd(struct ddr3_spd_cb *spd_cb);
|
||||
|
||||
#endif /* __DDR3_CFG_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue