am33xx: Make config_cmd_ctrl / config_ddr_data take const structs
authorTom Rini <trini@ti.com>
Tue, 3 Jul 2012 15:48:46 +0000 (08:48 -0700)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:12 +0000 (14:58 +0200)
commitbce58fece5bcf3f18edbb85da651014a07203c72
treeb2ca01f6a4b39b9aa80d07bd6d671463edfd674c
parent10e7e36daf1cfea24961100d3bd0f3e928fb6155
am33xx: Make config_cmd_ctrl / config_ddr_data take const structs

Rework the EMIF4/DDR code slightly to setup the structs that
config_cmd_ctrl and config_ddr_data take to be setup at compile time and
mark them as const.  This lets us simplify the calling path slightly as
well as making it easier to deal with DDR3.

Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/am33xx/ddr.c
arch/arm/cpu/armv7/am33xx/emif4.c
arch/arm/include/asm/arch-am33xx/ddr_defs.h