diff options
author | Tom Rini <trini@ti.com> | 2012-07-03 16:20:06 (GMT) |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 12:58:12 (GMT) |
commit | b971dfad6a1c8c37857390d847ee22ec7af4aee2 (patch) | |
tree | 5aa03e913128f11e30a96fc0878faa38234c2f38 /arch/arm/cpu/armv7/am33xx/emif4.c | |
parent | fda35eb982a6846c776bd94ba4b24bf43cbfe328 (diff) | |
download | u-boot-b971dfad6a1c8c37857390d847ee22ec7af4aee2.tar.xz |
am33xx: Move the call to ddr_pll_config, make it take the frequency
Depending on if we have DDR2 or DDR3 on the board we will need to call
ddr_pll_config with a different value. This call can be delayed
slightly to the point where we know which type of memory we have.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/am33xx/emif4.c')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/emif4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/emif4.c b/arch/arm/cpu/armv7/am33xx/emif4.c index 9b1a80c..12f270a 100644 --- a/arch/arm/cpu/armv7/am33xx/emif4.c +++ b/arch/arm/cpu/armv7/am33xx/emif4.c @@ -21,6 +21,7 @@ #include <asm/arch/ddr_defs.h> #include <asm/arch/hardware.h> #include <asm/arch/clock.h> +#include <asm/arch/sys_proto.h> #include <asm/io.h> #include <asm/emif.h> @@ -150,6 +151,7 @@ void config_ddr(short ddr_type) enable_emif_clocks(); if (ddr_type == EMIF_REG_SDRAM_TYPE_DDR2) { + ddr_pll_config(266); config_vtp(); config_cmd_ctrl(&ddr2_cmd_ctrl_data); |