]> git.sur5r.net Git - u-boot/blobdiff - cmd/load.c
arm: socfpga: Remove unused passing parameter of socfpga_bridges_reset
[u-boot] / cmd / load.c
index 65557e4f9ec3737aa14569ef97d1db4a561fcb25..4597ec5618da2df839af0703541f3ce6087a7bb0 100644 (file)
@@ -151,7 +151,7 @@ static ulong load_serial(long offset)
                case SREC_DATA3:
                case SREC_DATA4:
                    store_addr = addr + offset;
-#ifndef CONFIG_SYS_NO_FLASH
+#ifdef CONFIG_MTD_NOR_FLASH
                    if (addr2info(store_addr)) {
                        int rc;
 
@@ -971,7 +971,7 @@ static ulong load_serial_ymodem(ulong offset, int mode)
                        store_addr = addr + offset;
                        size += res;
                        addr += res;
-#ifndef CONFIG_SYS_NO_FLASH
+#ifdef CONFIG_MTD_NOR_FLASH
                        if (addr2info(store_addr)) {
                                int rc;
 
@@ -997,7 +997,7 @@ static ulong load_serial_ymodem(ulong offset, int mode)
        xyzModem_stream_terminate(false, &getcxmodem);
 
 
-       flush_cache(offset, size);
+       flush_cache(offset, ALIGN(size, ARCH_DMA_MINALIGN));
 
        printf("## Total Size      = 0x%08x = %d Bytes\n", size, size);
        setenv_hex("filesize", size);