ARM: keystone2: use SPD info to configure K2HK and K2E DDR3
authorVitaly Andrianov <vitalya@ti.com>
Fri, 4 Mar 2016 16:36:42 +0000 (10:36 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 14 Mar 2016 23:18:44 +0000 (19:18 -0400)
commitd9a76e77c8c99dc6da98aef94e0a241581d1cbe7
treed823639ecb785a4a1001e72e22b77f4615bc129d
parentef76ebb1ef7b9b4c72c71b003c6617187e4cd7d9
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>
arch/arm/mach-keystone/Makefile
arch/arm/mach-keystone/ddr3_spd.c [new file with mode: 0644]
arch/arm/mach-keystone/include/mach/ddr3.h
board/ti/ks2_evm/Makefile
board/ti/ks2_evm/ddr3_cfg.c
board/ti/ks2_evm/ddr3_cfg.h
board/ti/ks2_evm/ddr3_k2e.c
board/ti/ks2_evm/ddr3_k2hk.c
include/configs/k2e_evm.h
include/configs/k2hk_evm.h