Browse Source

nios2: Fix AMDLV065D flash write bug in altera board common tree.

Signed-off-by: Scott McNutt <smcnutt@psyent.com>
Scott McNutt 15 years ago
parent
commit
9e486ab1c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      board/altera/common/AMDLV065D.c

+ 1 - 1
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);