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:

committed by
Tom Rini

parent
ef76ebb1ef
commit
d9a76e77c8
@@ -48,6 +48,14 @@ struct ddr3_emif_config {
|
||||
unsigned int sdrfc;
|
||||
};
|
||||
|
||||
struct ddr3_spd_cb {
|
||||
char dimm_name[32];
|
||||
struct ddr3_phy_config phy_cfg;
|
||||
struct ddr3_emif_config emif_cfg;
|
||||
unsigned int ddrspdclock;
|
||||
int ddr_size_gbyte;
|
||||
};
|
||||
|
||||
u32 ddr3_init(void);
|
||||
void ddr3_reset_ddrphy(void);
|
||||
void ddr3_init_ecc(u32 base, u32 ddr3_size);
|
||||
|
Reference in New Issue
Block a user