]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ddr: altera: Fix scc_mgr_set() argument order
authorMarek Vasut <marex@denx.de>
Mon, 4 Apr 2016 15:28:16 +0000 (17:28 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 20 Apr 2016 09:28:44 +0000 (11:28 +0200)
The code should be setting registers to zero, not one register to value.
Swap the order of arguments to correct the behavior. The behavior is now
in-line with code generated by Quartus 15.1 .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
drivers/ddr/altera/sequencer.c

index bf74b4e6518355eb3463be2e40c2b90708ba9cff..3859e66a00b11932e6a94d886b357a6fcbd191bf 100644 (file)
@@ -279,7 +279,7 @@ static void scc_mgr_initialize(void)
        for (i = 0; i < 16; i++) {
                debug_cond(DLEVEL == 1, "%s:%d: Clearing SCC RFILE index %u\n",
                           __func__, __LINE__, i);
-               scc_mgr_set(SCC_MGR_HHP_RFILE_OFFSET, 0, i);
+               scc_mgr_set(SCC_MGR_HHP_RFILE_OFFSET, i, 0);
        }
 }