u-boot-brain/arch/arm/mach-keystone
Vitaly Andrianov 8efc243741 ARM: keystone2: use detected ddr3a size
Because KS2 u-boot works in 32 bit address space the existing ram_size
global data field cannot be used. The maximum, which the get_ram_size()
can detect is 2GB only. The ft_board_setup() needs the actual ddr3 size
to fix up dtb.

This commit introduces the ddr3_get_size() which uses SPD data to
calculate the ddr3 size. This function replaces the "ddr3_size"
environment variable, which was used to get the SODIMM size.

For platforms, which don't have SODIMM with SPD and ddr3 is populated to
a board a simple ddr3_get_size function that returns ddr3 size has to be
implemented. See hardware-k2l.h

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-03-14 19:18:45 -04:00
..
include/mach ARM: keystone2: use detected ddr3a size 2016-03-14 19:18:45 -04:00
clock.c ARM: keystone2: K2G: Add support for different arm/device speeds 2016-03-14 19:18:44 -04:00
cmd_clock.c ARM: keystone2: Use common definition for clk_get_rate 2015-08-12 20:47:55 -04:00
cmd_ddr3.c ARM: keystone: move SoC sources to mach-keystone 2015-02-21 08:23:52 -05:00
cmd_mon.c ARM: k2g: Add clock information 2015-10-22 14:22:16 -04:00
config.mk ARM: keystone2: Use dtb images by default 2015-10-22 14:22:11 -04:00
ddr3_spd.c ARM: keystone2: use detected ddr3a size 2016-03-14 19:18:45 -04:00
ddr3.c ARM: k2g: Add ddr3 info 2015-10-22 14:22:18 -04:00
init.c ARM: k2g: Correct base addresses 2015-10-22 14:22:20 -04:00
Kconfig ARM: k2g: Add kconfig support 2015-10-22 14:22:13 -04:00
keystone.c ARM: keystone2: Use macro for DSP GEM power domain 2016-03-14 19:18:42 -04:00
Makefile ARM: keystone2: use SPD info to configure K2HK and K2E DDR3 2016-03-14 19:18:44 -04:00
msmc.c ARM: keystone: move SoC sources to mach-keystone 2015-02-21 08:23:52 -05:00
psc.c ARM: keystone2: psc: introduce function to hold and release module in reset. 2016-03-14 19:18:36 -04:00