]> 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 0aa7937fd4bfeed10a283bbdcd42c129350c0bf6..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);
@@ -1081,33 +1081,3 @@ U_BOOT_CMD(
 );
 
 #endif /* CONFIG_CMD_LOADB */
-
-/* -------------------------------------------------------------------- */
-
-#if defined(CONFIG_CMD_HWFLOW)
-int do_hwflow(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
-{
-       extern int hwflow_onoff(int);
-
-       if (argc == 2) {
-               if (strcmp(argv[1], "off") == 0)
-                       hwflow_onoff(-1);
-               else
-                       if (strcmp(argv[1], "on") == 0)
-                               hwflow_onoff(1);
-                       else
-                               return CMD_RET_USAGE;
-       }
-       printf("RTS/CTS hardware flow control: %s\n", hwflow_onoff(0) ? "on" : "off");
-       return 0;
-}
-
-/* -------------------------------------------------------------------- */
-
-U_BOOT_CMD(
-       hwflow, 2, 0,   do_hwflow,
-       "turn RTS/CTS hardware flow control in serial line on/off",
-       "[on|off]"
-);
-
-#endif /* CONFIG_CMD_HWFLOW */