am33xx: Re-enable SW levelling for DDR2
authorTom Rini <trini@ti.com>
Fri, 5 Jun 2015 10:21:11 +0000 (15:51 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 15 Jun 2015 14:57:26 +0000 (10:57 -0400)
commit7c352cd38d0ad7a25f98592182704667dfde37a8
treeab155ec66d04a7a7e7096cb41fdf1eeaa1d200bb
parent37be54fd1351a177c061c2c351ffdd53efaebb59
am33xx: Re-enable SW levelling for DDR2

The recent changes for hw leveling on am33xx were not intended for
DDR2 boards, only DDR3. Update emif_sdram_type to take a sdram_config
value to check against. This lets us pass in the value we would use to
configure, when we have not yet configured the board yet.  In other cases
update the call to be as functional as before and check an already
programmed value in.

Tested-by: Yan Liu <yan-liu@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/cpu/armv7/am33xx/ddr.c
arch/arm/cpu/armv7/am33xx/emif4.c
arch/arm/cpu/armv7/omap-common/clocks-common.c
arch/arm/cpu/armv7/omap-common/emif-common.c
arch/arm/cpu/armv7/omap5/hwinit.c
arch/arm/include/asm/emif.h
board/ti/am43xx/board.c