diff options
author | York Sun <yorksun@freescale.com> | 2011-05-27 13:44:28 +0800 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-07-11 13:24:20 -0500 |
commit | 23f9670f1aee936ca468d2d0ddb0f025defde626 (patch) | |
tree | e105961ef1dd750827d373bda9be7fd23fbafbb6 /arch/powerpc/cpu/mpc8xxx/ddr | |
parent | 86dda504847e6b05b01a4c37ebbafff4cbf78eac (diff) | |
download | u-boot-imx-23f9670f1aee936ca468d2d0ddb0f025defde626.zip u-boot-imx-23f9670f1aee936ca468d2d0ddb0f025defde626.tar.gz u-boot-imx-23f9670f1aee936ca468d2d0ddb0f025defde626.tar.bz2 |
powerpc/mpc8xxx: Allow override DDR read-to-write turnaround time
Add this option to allow boards to override the default read-to-write
turnaround time for better performance.
Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/ddr')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c b/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c index 02d069c..3824aad 100644 --- a/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c +++ b/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c @@ -267,6 +267,9 @@ static void set_timing_cfg_0(fsl_ddr_cfg_regs_t *ddr, tmrd_mclk = 2; #endif + if (popts->trwt_override) + trwt_mclk = popts->trwt; + ddr->timing_cfg_0 = (0 | ((trwt_mclk & 0x3) << 30) /* RWT */ | ((twrt_mclk & 0x3) << 28) /* WRT */ |