am33xx evm: Update secure_emif_sdram_config during ddr init
authorSatyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
Thu, 9 Aug 2012 18:29:57 +0000 (18:29 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:19 +0000 (14:58 +0200)
commit6995a2893718a54cbd255ea3dd9b6d7306e30cf2
treecd4a9e07c0a76c4d6f719e07c2c7dffe3ae83f65
parent25f8bf6eff9e66df850301c5e9e5259807e286f0
am33xx evm: Update secure_emif_sdram_config during ddr init

This patch updates secure_emif_sdram_config with the
same value written to sdram_config during ddr3 initialization.

During suspend/resume, this value is copied into sdram_config.
With this, a write to sdram_config at the end of resume sequence
which triggers an init sequence can be avoided.

Without this register write in place, the DDR_RESET line goes
low for a few cycles during resume which is a violation of the
JEDEC spec.

Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
arch/arm/cpu/armv7/am33xx/ddr.c
arch/arm/include/asm/arch-am33xx/cpu.h
arch/arm/include/asm/arch-am33xx/sys_proto.h