Date: Wed, 3 May 2006 23:18:48 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96633 for review Message-ID: <200605032318.k43NImZ0029128@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96633 Change 96633 by imp@imp_hammer on 2006/05/03 23:18:06 xmodem download code was just debug Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/bootspi/loader_prompt.c#6 edit .. //depot/projects/arm/src/sys/boot/arm/at91/bootspi/loader_prompt.h#5 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/bootspi/loader_prompt.c#6 (text+ko) ==== @@ -67,7 +67,6 @@ {COMMAND_RESET, "R"}, {COMMAND_REPLACE_FLASH_VIA_XMODEM, "I"}, {COMMAND_REPLACE_FPGA_VIA_XMODEM, "F"}, - {COMMAND_PROGRAM_FPGA_VIA_XMODEM, "f"}, {COMMAND_FINAL_FLAG, 0} }; @@ -227,21 +226,6 @@ } } -static void -ProgramFpga(void) -{ - char *addr = (char *)SDRAM_BASE + (1 << 20); /* Load to base + 1MB */ - int len; - - while ((len = xmodem_rx(addr)) == -1) - continue; - printf("Loading %u bytes into the FPGA...\r\n", len); - fpga_init(&main_fpga); - fpga_clear(&main_fpga); - fpga_write_bytes(&main_fpga, addr, len); - fpga_done(&main_fpga); -} - /* * .KB_C_FN_DEFINITION_START * void ParseCommand(char *) @@ -411,8 +395,6 @@ printf("Updating FLASH image\r\n"); UpdateFlash(0); break; - case COMMAND_PROGRAM_FPGA_VIA_XMODEM: - ProgramFpga(); default: break; } ==== //depot/projects/arm/src/sys/boot/arm/at91/bootspi/loader_prompt.h#5 (text+ko) ==== @@ -43,7 +43,6 @@ COMMAND_RESET, COMMAND_REPLACE_FLASH_VIA_XMODEM, COMMAND_REPLACE_FPGA_VIA_XMODEM, - COMMAND_PROGRAM_FPGA_VIA_XMODEM, COMMAND_FINAL_FLAG } e_cmd_t;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605032318.k43NImZ0029128>