summaryrefslogtreecommitdiff
path: root/arch/mips/cpu/xburst/jz4780/sdram.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/cpu/xburst/jz4780/sdram.c')
-rw-r--r--arch/mips/cpu/xburst/jz4780/sdram.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/cpu/xburst/jz4780/sdram.c b/arch/mips/cpu/xburst/jz4780/sdram.c
index b5cedf63b..431e6f64b 100644
--- a/arch/mips/cpu/xburst/jz4780/sdram.c
+++ b/arch/mips/cpu/xburst/jz4780/sdram.c
@@ -165,12 +165,12 @@ static void ddr_phy_init(const struct jz4780_ddr_config *ddr_config)
}
}
- /* Override impedence */
+ /* Override impedance */
tmp = readl(DDRP_ZQXCR0(0));
tmp &= ~0x3ff;
- tmp |= (CONFIG_SYS_DDR3PHY_PULLUP_IMPEDANCE & 0x1f) <<
+ tmp |= (ddr_config->pullup & 0x1f) <<
DDRP_ZQXCR_PULLUP_IMPE_BIT;
- tmp |= (CONFIG_SYS_DDR3PHY_PULLDOWN_IMPEDANCE & 0x1f) <<
+ tmp |= (ddr_config->pulldn & 0x1f) <<
DDRP_ZQXCR_PULLDOWN_IMPE_BIT;
tmp |= DDRP_ZQXCR_ZDEN;
writel(tmp, DDRP_ZQXCR0(0));