summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-11-20 17:57:23 +0100
committerPatrick Georgi <pgeorgi@google.com>2014-11-22 21:04:43 +0100
commitc637a887dde1c63bf3863e70cbe19dedf5f6ca02 (patch)
treed5642569987abda594b6c93c64fbddc0f32df003 /src
parentf8457985d84caa25239ffc31d74f8d3d839541f3 (diff)
downloadcoreboot-c637a887dde1c63bf3863e70cbe19dedf5f6ca02.tar.xz
allwinner/a10: fix raminit
gcc 4.8.3 broke on it, and the u-boot code that this was derived from contains the same change. Change-Id: I3936567a1bee3eceb469373a81e464b1238fdf9c Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: http://review.coreboot.org/7538 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/allwinner/a10/raminit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/allwinner/a10/raminit.c b/src/cpu/allwinner/a10/raminit.c
index 84fe4e8d99..de24e03ec8 100644
--- a/src/cpu/allwinner/a10/raminit.c
+++ b/src/cpu/allwinner/a10/raminit.c
@@ -225,7 +225,7 @@ static int dramc_scan_dll_para(void)
for (cr_i = 1; cr_i < 5; cr_i++) {
clrsetbits_le32(&dram->dllcr[cr_i],
0x4f << 14,
- (dqs_dly[clk_i] & 0x4f) << 14);
+ (dqs_dly[dqs_i] & 0x4f) << 14);
}
udelay(2);
if (dramc_scan_readpipe() == 0)