From c637a887dde1c63bf3863e70cbe19dedf5f6ca02 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 20 Nov 2014 17:57:23 +0100 Subject: 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 Reviewed-on: http://review.coreboot.org/7538 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan Reviewed-by: Paul Menzel --- src/cpu/allwinner/a10/raminit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/allwinner/a10') 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) -- cgit v1.2.3