]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
nios2: Fix AMDLV065D flash write bug in altera board common tree.
authorScott McNutt <smcnutt@psyent.com>
Wed, 31 Mar 2010 00:26:15 +0000 (20:26 -0400)
committerScott McNutt <smcnutt@psyent.com>
Fri, 2 Apr 2010 16:28:41 +0000 (12:28 -0400)
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
board/altera/common/AMDLV065D.c

index 72b0a9f8074d332da076eb161c0dce78bffbc998..7a1b4d3c2f6be22ceacdaab94bd57e622174f43b 100644 (file)
@@ -172,7 +172,7 @@ int write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cnt)
                writeb (0xaa, cmd);
                writeb (0x55, cmd);
                writeb (0xa0, cmd);
-               writeb (dst, b);
+               writeb (b, dst);
 
                /* Verify write */
                start = get_timer (0);