From: Scott McNutt Date: Wed, 31 Mar 2010 00:26:15 +0000 (-0400) Subject: nios2: Fix AMDLV065D flash write bug in altera board common tree. X-Git-Tag: v2010.06-rc1~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e486ab1c98ea7ab357520307fe5d5a0847cd1bb;p=oweals%2Fu-boot.git nios2: Fix AMDLV065D flash write bug in altera board common tree. Signed-off-by: Scott McNutt --- diff --git a/board/altera/common/AMDLV065D.c b/board/altera/common/AMDLV065D.c index 72b0a9f807..7a1b4d3c2f 100644 --- a/board/altera/common/AMDLV065D.c +++ b/board/altera/common/AMDLV065D.c @@ -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);