summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/am33xx/board.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-07-03 15:51:34 (GMT)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 12:58:12 (GMT)
commitfda35eb982a6846c776bd94ba4b24bf43cbfe328 (patch)
tree654b377d8e836030fcecf20889dbb4c74315e356 /arch/arm/cpu/armv7/am33xx/board.c
parentbce58fece5bcf3f18edbb85da651014a07203c72 (diff)
downloadu-boot-fda35eb982a6846c776bd94ba4b24bf43cbfe328.tar.xz
am33xx: Pass to config_ddr the type of memory that is connected
We need to pass in the type of memory that is connected to the board. The only reliable way to do this is to know what type of board we are running on (which later will be knowable in s_init()). For now, pass in the value of DDR2. Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx/board.c')
-rw-r--r--arch/arm/cpu/armv7/am33xx/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c
index 1104655..ec542fd 100644
--- a/arch/arm/cpu/armv7/am33xx/board.c
+++ b/arch/arm/cpu/armv7/am33xx/board.c
@@ -27,6 +27,7 @@
#include <asm/arch/common_def.h>
#include <asm/io.h>
#include <asm/omap_common.h>
+#include <asm/emif.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -107,7 +108,7 @@ void s_init(void)
preloader_console_init();
- config_ddr();
+ config_ddr(EMIF_REG_SDRAM_TYPE_DDR2);
#endif
/* Enable MMC0 */