]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/bf533-ezkit/flash.c
punt Blackfin VDSP headers and import sanitized/auto-generated ones
[people/ms/u-boot.git] / board / bf533-ezkit / flash.c
index 299cdbae735bbc4521349b41e6539272035997a2..cdf4dc69ba459f1a6ee8e0346b5aa95231eebe39 100644 (file)
@@ -286,9 +286,9 @@ int write_flash(long nOffset, int nValue)
        long addr;
 
        addr = (CFG_FLASH_BASE + nOffset);
-       sync();
+       SSYNC();
        *(unsigned volatile short *)addr = nValue;
-       sync();
+       SSYNC();
        if (poll_toggle_bit(nOffset) < 0)
                return FLASH_FAIL;
        return FLASH_SUCCESS;
@@ -301,9 +301,9 @@ int read_flash(long nOffset, int *pnValue)
 
        if (nOffset != 0x2)
                reset_flash();
-       sync();
+       SSYNC();
        nValue = *(volatile unsigned short *)addr;
-       sync();
+       SSYNC();
        *pnValue = nValue;
        return TRUE;
 }