[PATCH] ppc ddr-8xxx: misplaced parenthesis
Renaud Barbier
renaud.barbier at ge.com
Thu Jul 18 06:16:51 EDT 2013
Signed-off-by: Renaud Barbier <renaud.barbier at ge.com>
---
arch/ppc/ddr-8xxx/ctrl_regs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/ppc/ddr-8xxx/ctrl_regs.c b/arch/ppc/ddr-8xxx/ctrl_regs.c
index 3f8ecf7..1abc826 100644
--- a/arch/ppc/ddr-8xxx/ctrl_regs.c
+++ b/arch/ppc/ddr-8xxx/ctrl_regs.c
@@ -314,7 +314,7 @@ static void set_ddr_sdram_mode(struct fsl_ddr_cfg_regs_s *ddr,
| ((rtt & 0x1) << 2));
/* Write recovery */
- wr = (dimm->tWR_ps + mclk_ps - 1) / (mclk_ps - 1);
+ wr = ((dimm->tWR_ps + mclk_ps - 1) / mclk_ps) - 1;
switch (popts->burst_length) {
case DDR_BL4:
--
1.7.1
More information about the barebox
mailing list