summaryrefslogtreecommitdiff
path: root/board/ti/ks2_evm/ddr3_cfg.h
diff options
context:
space:
mode:
authorVitaly Andrianov <vitalya@ti.com>2016-03-04 16:36:42 (GMT)
committerTom Rini <trini@konsulko.com>2016-03-14 23:18:44 (GMT)
commitd9a76e77c8c99dc6da98aef94e0a241581d1cbe7 (patch)
treed823639ecb785a4a1001e72e22b77f4615bc129d /board/ti/ks2_evm/ddr3_cfg.h
parentef76ebb1ef7b9b4c72c71b003c6617187e4cd7d9 (diff)
downloadu-boot-d9a76e77c8c99dc6da98aef94e0a241581d1cbe7.tar.xz
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>
Diffstat (limited to 'board/ti/ks2_evm/ddr3_cfg.h')
-rw-r--r--board/ti/ks2_evm/ddr3_cfg.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/board/ti/ks2_evm/ddr3_cfg.h b/board/ti/ks2_evm/ddr3_cfg.h
index 5bd786c..f95edde 100644
--- a/board/ti/ks2_evm/ddr3_cfg.h
+++ b/board/ti/ks2_evm/ddr3_cfg.h
@@ -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 */