summaryrefslogtreecommitdiff
path: root/board/ti/am335x/board.c
diff options
context:
space:
mode:
authorMatt Porter <mporter@ti.com>2013-03-15 10:07:03 +0000
committerTom Rini <trini@ti.com>2013-03-24 12:49:11 -0400
commit3ba65f97cbedb39fb486f42f8daa9b9e0d36705a (patch)
tree0349f033250c48a61c82a6c3bc5bf85ad220c6c1 /board/ti/am335x/board.c
parent81df2bab46d3bed319e21571c68db8e0a048bbfd (diff)
downloadu-boot-imx-3ba65f97cbedb39fb486f42f8daa9b9e0d36705a.zip
u-boot-imx-3ba65f97cbedb39fb486f42f8daa9b9e0d36705a.tar.gz
u-boot-imx-3ba65f97cbedb39fb486f42f8daa9b9e0d36705a.tar.bz2
am33xx: refactor emif4/ddr to support multiple EMIF instances
The AM33xx emif4/ddr support closely matches what is need to support TI814x except that TI814x has two EMIF instances. Refactor all the emif4 helper calls and the config_ddr() init function to use an additional instance number argument. Signed-off-by: Matt Porter <mporter@ti.com> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r--board/ti/am335x/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 758ba15..d61d650 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -345,13 +345,13 @@ void s_init(void)
if (board_is_evm_sk() || board_is_bone_lt())
config_ddr(303, MT41J128MJT125_IOCTRL_VALUE, &ddr3_data,
- &ddr3_cmd_ctrl_data, &ddr3_emif_reg_data);
+ &ddr3_cmd_ctrl_data, &ddr3_emif_reg_data, 0);
else if (board_is_evm_15_or_later())
config_ddr(303, MT41J512M8RH125_IOCTRL_VALUE, &ddr3_evm_data,
- &ddr3_evm_cmd_ctrl_data, &ddr3_evm_emif_reg_data);
+ &ddr3_evm_cmd_ctrl_data, &ddr3_evm_emif_reg_data, 0);
else
config_ddr(266, MT47H128M16RT25E_IOCTRL_VALUE, &ddr2_data,
- &ddr2_cmd_ctrl_data, &ddr2_emif_reg_data);
+ &ddr2_cmd_ctrl_data, &ddr2_emif_reg_data, 0);
#endif
}