diff options
author | Tom Rini <trini@ti.com> | 2012-07-03 08:48:46 -0700 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 14:58:12 +0200 |
commit | bce58fece5bcf3f18edbb85da651014a07203c72 (patch) | |
tree | b2ca01f6a4b39b9aa80d07bd6d671463edfd674c /arch/arm/include | |
parent | 10e7e36daf1cfea24961100d3bd0f3e928fb6155 (diff) | |
download | u-boot-imx-bce58fece5bcf3f18edbb85da651014a07203c72.zip u-boot-imx-bce58fece5bcf3f18edbb85da651014a07203c72.tar.gz u-boot-imx-bce58fece5bcf3f18edbb85da651014a07203c72.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/arch-am33xx/ddr_defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-am33xx/ddr_defs.h b/arch/arm/include/asm/arch-am33xx/ddr_defs.h index c62f826..087082f 100644 --- a/arch/arm/include/asm/arch-am33xx/ddr_defs.h +++ b/arch/arm/include/asm/arch-am33xx/ddr_defs.h @@ -190,12 +190,12 @@ struct ddr_data { /** * Configure DDR CMD control registers */ -int config_cmd_ctrl(struct cmd_control *cmd); +int config_cmd_ctrl(const struct cmd_control *cmd); /** * Configure DDR DATA registers */ -int config_ddr_data(int data_macrono, struct ddr_data *data); +int config_ddr_data(int data_macrono, const struct ddr_data *data); /** * This structure represents the DDR io control on AM33XX devices. |